forked from extern/nix-config
neovim: Enable treesitter highlighting
This works, however some of the syntax highlighting with treesitter feels worse compared to the default syntax highlighting, so it may be more useful to keep it disabled.
This commit is contained in:
parent
864ed55261
commit
49cc04114e
@ -603,6 +603,19 @@ in
|
||||
}
|
||||
'';
|
||||
}
|
||||
{
|
||||
plugin = nvim-treesitter.withAllGrammars;
|
||||
type = "lua";
|
||||
config = /* lua */ ''
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = { "rust" },
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
}
|
||||
'';
|
||||
}
|
||||
cosco-vim
|
||||
fzf-vim
|
||||
vim-caddyfile
|
||||
@ -626,7 +639,6 @@ in
|
||||
vim-svelte
|
||||
typst-vim
|
||||
emmet-vim
|
||||
nvim-treesitter.withAllGrammars
|
||||
tagbar
|
||||
yats-vim
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user