Only enabled tree-sitter when in lua and fixed indentation

This commit is contained in:
Nicholas Novak
2022-11-19 20:57:39 -08:00
parent 0ee637d788
commit 4d13a0a1da
+7
View File
@@ -97,6 +97,13 @@ require('nvim-treesitter.configs').setup({
auto_install = true, auto_install = true,
highlight = { highlight = {
enable = true, enable = true,
disable = function(lang, bufnr)
-- including vim for the sake of Lua blocks inside VimL
if lang == "vim" or lang == "lua" then
return false
end
return true
end
}, },
}) })
EOF EOF