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:
Donovan Glover
2024-01-12 04:26:01 -05:00
parent 864ed55261
commit 49cc04114e

View File

@ -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 cosco-vim
fzf-vim fzf-vim
vim-caddyfile vim-caddyfile
@ -626,7 +639,6 @@ in
vim-svelte vim-svelte
typst-vim typst-vim
emmet-vim emmet-vim
nvim-treesitter.withAllGrammars
tagbar tagbar
yats-vim yats-vim
]; ];