fix(treesitter): avoid auto-closing folds

This commit is contained in:
Bryan Ramos 2026-04-30 10:43:31 -04:00
parent 798a266ed7
commit f11e6a02db
2 changed files with 28 additions and 2 deletions

View file

@ -72,8 +72,6 @@ return {
},
callback = function(event)
if pcall(vim.treesitter.start, event.buf) then
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.wo.foldmethod = "expr"
vim.bo[event.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end
end,