zsh: fix highlighter backwards compatibility
Use the module system to set the default at user prio so that existing configs don't clear out `main` Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
c37679d37b
commit
d0cdb4101f
2 changed files with 10 additions and 3 deletions
|
|
@ -7,7 +7,6 @@
|
|||
enable = true;
|
||||
package = pkgs.hello;
|
||||
highlighters = [
|
||||
"main"
|
||||
"brackets"
|
||||
"pattern"
|
||||
"cursor"
|
||||
|
|
@ -19,7 +18,7 @@
|
|||
|
||||
nmt.script = ''
|
||||
assertFileContains home-files/.zshrc "source ${pkgs.hello}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)"
|
||||
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_HIGHLIGHTERS=(brackets pattern cursor main)"
|
||||
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_STYLES[comment]='fg=#6c6c6c'"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue