treesitter folding

This commit is contained in:
Alexander Kabolov 2025-01-24 18:00:46 +01:00
parent 76429ff79e
commit 51ffc49f18
1 changed files with 6 additions and 0 deletions

View File

@ -72,3 +72,9 @@ vim.opt.scrolloff = 10
vim.opt.spell = false vim.opt.spell = false
vim.opt.indentkeys:remove ':' vim.opt.indentkeys:remove ':'
-- Folding
vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
vim.opt.foldenable = true
vim.opt.foldlevel = 99