diff options
| author | Phạm Bình An <111893501+brianhuster@users.noreply.github.com> | 2025-07-16 05:15:16 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 06:15:16 +0800 |
| commit | 9789a3b854d7f670dd231bdffe1bce0098509539 (patch) | |
| tree | 9ef08070e7a8fa245425cd64ac223b34d58a9803 /runtime/ftplugin/lua.lua | |
| parent | d4c8e8df1c80cf195dc1d1b98c1c8429dd3f43ed (diff) | |
| download | rneovim-9789a3b854d7f670dd231bdffe1bce0098509539.tar.gz rneovim-9789a3b854d7f670dd231bdffe1bce0098509539.tar.bz2 rneovim-9789a3b854d7f670dd231bdffe1bce0098509539.zip | |
revert: "fix(runtime): set 'foldmethod' for Lua ftplugin #34929" (#34947)
This reverts commit 12276832ab67b16f795d78c72386ab28c6ee26c7.
Diffstat (limited to 'runtime/ftplugin/lua.lua')
| -rw-r--r-- | runtime/ftplugin/lua.lua | 3 |
1 files changed, 1 insertions, 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<' |