Skip to content

Commit

Permalink
docs: improve syntect_theme description
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jan 27, 2024
1 parent c8a29d6 commit 907b26f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/configuration/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ Border:

Highlighting: The built-in syntax highlighting feature

- syntect_theme (String): Theme file path. Since Yazi and `bat` use the same highlighter, so you can directly use bat's theme files, such as `~/.config/bat/themes/Catppuccino-mocha.tmTheme`.
- syntect_theme (String): Theme file path ending with ".tmTheme", used by syntect. e.g. `"~/my-themes/Dracula.tmTheme"`.

Yazi and `bat` use the same highlighter [syntect](https://crates.io/crates/syntect), so you can directly use [bat's theme files](https://github.com/sharkdp/bat/tree/master/assets/themes).
You can also find more available themes on GitHub by using the keyword "tmTheme".

## [status]

Expand Down

0 comments on commit 907b26f

Please sign in to comment.