diff --git a/lua/custom/options.lua b/lua/custom/options.lua index 0eead832..325ef604 100644 --- a/lua/custom/options.lua +++ b/lua/custom/options.lua @@ -72,3 +72,9 @@ vim.opt.scrolloff = 10 vim.opt.spell = false vim.opt.indentkeys:remove ':' + +-- Folding +vim.opt.foldmethod = 'expr' +vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' +vim.opt.foldenable = true +vim.opt.foldlevel = 99