add treesitter folding

This commit is contained in:
andrzej 2024-03-19 22:39:41 +01:00
parent 8071c23c8a
commit fe9bfddfe9
1 changed files with 4 additions and 0 deletions

View File

@ -38,3 +38,7 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"