Only enabled tree-sitter when in lua and fixed indentation
This commit is contained in:
@@ -97,6 +97,13 @@ require('nvim-treesitter.configs').setup({
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user