Open MaxG87 opened 2 years ago
Hi @MaxG87 I think you're right that this could be more explicit in the user manual: https://dandavison.github.io/delta/configuration.html?search=syntax-theme
However, have you consulted delta --help
? That is the point-of-truth for delta configuration options. See:
--syntax-theme <SYNTAX_THEME>
The syntax-highlighting theme to use.
Use --show-syntax-themes to demo available themes. Defaults to the value of the BAT_THEME environment variable, if that contains a valid theme name. --syntax-theme=none disables all syntax highlighting.
and there is an example further down in the --help
output
syntax-theme = Dracula
plus-style = bold syntax "#002800"
In gitconfig you do not need to quote a syntax theme even if it contains spaces. (But on the shell command line you would of course need to quote a string containing spaces)
Sorry, I missed that. I was a bit overwhelmed by the configurability. In particular I searched for style pretty long, noticed they are related to features, and finally noticed it should be themes. Then I gave up. Until your reply I wasn't even aware I should configure --syntax-theme
.
Anyhow, your reply really helped me. Thank you very much.
I found git-delta on Hacker News and wanted to give it a try. The example configuration was easy enough to set up.
However, the default colour scheme is not great. I wanted to set up OneHalfLight, which is listed as available theme. I spend quite some time trying to figure that out. Unfortunately I couldn't find an example or explanation in your documentation and I could not find anything using a search engine neither.
Since
delta
advertises itself as usingbat
's builtin themes, I think it would be fitting to explicitly demonstrate how to configure one.