From 407fc0bb1615672cc30da17300124a4c63610a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20B=C3=ACnh=20An?= <111893501+brianhuster@users.noreply.github.com> Date: Wed, 16 Jul 2025 05:15:16 +0700 Subject: [PATCH] revert: "fix(runtime): set 'foldmethod' for Lua ftplugin #34929" (#34947) This reverts commit 12276832ab67b16f795d78c72386ab28c6ee26c7. (cherry picked from commit 9789a3b854d7f670dd231bdffe1bce0098509539) --- runtime/ftplugin/lua.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/ftplugin/lua.lua b/runtime/ftplugin/lua.lua index fde121d769..7c54b2cb1e 100644 --- a/runtime/ftplugin/lua.lua +++ b/runtime/ftplugin/lua.lua @@ -4,8 +4,7 @@ vim.treesitter.start() vim.bo.includeexpr = [[v:lua.require'vim._ftplugin.lua'.includeexpr(v:fname)]] vim.bo.omnifunc = 'v:lua.vim.lua_omnifunc' vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()' -vim.wo[0][0].foldmethod = 'expr' vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n call v:lua.vim.treesitter.stop()' - .. '\n setl omnifunc< foldexpr< foldmethod< includeexpr<' + .. '\n setl omnifunc< foldexpr< includeexpr<'