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
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

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