From 907b26f7a44b66719be44674ca2e4c0ca73bb174 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 27 Jan 2024 13:22:22 +0800 Subject: [PATCH] docs: improve syntect_theme description --- docs/configuration/theme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/configuration/theme.md b/docs/configuration/theme.md index 292b0aa4..c5a275e8 100644 --- a/docs/configuration/theme.md +++ b/docs/configuration/theme.md @@ -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]