2021-12-16 02:15:56 -06:00
|
|
|
local present, nvim_treesitter = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
nvim_treesitter.setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = true,
|
|
|
|
},
|
|
|
|
matchup = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
indent = {
|
2021-12-23 10:32:57 -06:00
|
|
|
disable = { 'yaml' }
|
2021-12-16 02:15:56 -06:00
|
|
|
},
|
|
|
|
autotag = {
|
|
|
|
enable = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
vim.cmd
|
|
|
|
[[
|
|
|
|
set foldmethod=expr
|
|
|
|
set foldexpr=nvim_treesitter#foldexpr()
|
|
|
|
set foldlevel=99
|
|
|
|
]]
|