From 502ccc1fc80c7af7dae30a6995974f0c87040e87 Mon Sep 17 00:00:00 2001 From: Kutsan Kaplan Date: Fri, 3 Jan 2025 01:11:18 +0300 Subject: [PATCH] feat(nvim): add 'foldnestmax' option --- .config/nvim/plugin/settings.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/plugin/settings.lua b/.config/nvim/plugin/settings.lua index 101a2f84..a7ee148c 100644 --- a/.config/nvim/plugin/settings.lua +++ b/.config/nvim/plugin/settings.lua @@ -109,6 +109,7 @@ opt.cursorline = true -- Highlight the screen line of the cursor with CursorLine opt.signcolumn = 'yes' -- Always draw the sign column even there is no sign in it. opt.foldmethod = 'expr' -- Use custom fold expression. opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- Custom fold expression for treesitter. +opt.foldnestmax = 4 -- Maximum nesting of folds. -- Buffer Options opt.modeline = false -- Disable modeline feature altogether.