From 51ffc49f18d0aab46cf2919fbed88dc6c0e3d677 Mon Sep 17 00:00:00 2001 From: Alexander Kabolov Date: Fri, 24 Jan 2025 18:00:46 +0100 Subject: [PATCH] treesitter folding --- lua/custom/options.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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