From 5c4e18ac60b4a483144eea303efd8f1675895b7e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 4 Jun 2026 13:15:36 +0000 Subject: [PATCH] fix(options): set foldmethod to 'expr' so treesitter foldexpr is consulted foldmethod='indent' silently ignores foldexpr; the treesitter fold expression is only evaluated when foldmethod='expr'. https://claude.ai/code/session_014eiycWG5KeoanDfLHDC825 --- lua/config/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 90d5aa6..ba2715d 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -97,7 +97,7 @@ vim.o.listchars = "extends:…,nbsp:␣,precedes:…,tab:> " -- folding vim.o.foldlevel = 10 -vim.o.foldmethod = "indent" +vim.o.foldmethod = "expr" vim.o.foldexpr = "v:lua.vim.treesitter.foldexpr()" vim.o.foldnestmax = 10 vim.o.foldtext = ""