diff --git a/home/neovim.nix b/home/neovim.nix index 39b09acf..a8d159df 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -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, }, }