add folding

This commit is contained in:
Radu Macocian
2025-10-21 10:49:16 +02:00
parent a8d391bd86
commit 721559611a
2 changed files with 17 additions and 9 deletions

View File

@@ -25,5 +25,13 @@ require 'nvim-treesitter.configs'.setup {
indent = {
enable = true,
disable = { "xml", "python" },
}
},
fold = {
enable = true,
},
}
vim.o.foldmethod = "expr"
vim.o.foldexpr = "nvim_treesitter#foldexpr()"
vim.o.foldenable = true