neovim: Only use treesitter highlighting for js/ts

Treesitter highlighting seems to be a downgrade in some cases, so I'm
okay with disabling it for most files.
This commit is contained in:
Donovan Glover 2024-01-31 07:03:16 -05:00
parent 9032c5e7e0
commit 74db7848f3
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -588,7 +588,11 @@ in
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
disable = { "rust" },
disable = function(lang)
if lang ~= "javascript" and lang ~= "tsx" and lang ~= "typescript" then
return true
end
end,
additional_vim_regex_highlighting = true,
},
}