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,
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user