Neovim_Backup/lua/plugins/treesitter.lua
2021-12-23 10:32:57 -06:00

28 lines
432 B
Lua
Executable File

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 = {
disable = { 'yaml' }
},
autotag = {
enable = true
}
}
vim.cmd
[[
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
set foldlevel=99
]]