mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
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:
parent
9032c5e7e0
commit
74db7848f3
@ -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,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user