neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit e641155b023c3e8164927248f937e2a5fcdc48e2
parent 2e5b560482fb76342387e7183283efe9d431f114
Author: phanium <91544758+phanen@users.noreply.github.com>
Date:   Sat, 22 Feb 2025 21:17:35 +0800

fix(runtime): avoid E31 in ftplugin (#32578)

fix: twice nunmap in ftplugin
Diffstat:
Mruntime/ftplugin/checkhealth.lua | 4++--
Mruntime/ftplugin/help.lua | 4++--
Mruntime/ftplugin/markdown.lua | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/runtime/ftplugin/checkhealth.lua b/runtime/ftplugin/checkhealth.lua @@ -10,5 +10,5 @@ vim.keymap.set('n', '[[', function() end, { buffer = 0, silent = false, desc = 'Jump to previous section' }) vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') - .. '\n exe "nunmap <buffer> gO"' - .. '\n exe "nunmap <buffer> ]]" | exe "nunmap <buffer> [["' + .. '\n sil! exe "nunmap <buffer> gO"' + .. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["' diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua @@ -118,6 +118,6 @@ vim.keymap.set('n', 'g==', function() end, { buffer = true }) vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') - .. '\n exe "nunmap <buffer> gO" | exe "nunmap <buffer> g=="' - .. '\n exe "nunmap <buffer> ]]" | exe "nunmap <buffer> [["' + .. '\n sil! exe "nunmap <buffer> gO" | sil! exe "nunmap <buffer> g=="' + .. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["' vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | call v:lua.vim.treesitter.stop()' diff --git a/runtime/ftplugin/markdown.lua b/runtime/ftplugin/markdown.lua @@ -10,5 +10,5 @@ vim.keymap.set('n', '[[', function() end, { buffer = 0, silent = false, desc = 'Jump to previous section' }) vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') - .. '\n exe "nunmap <buffer> gO"' - .. '\n exe "nunmap <buffer> ]]" | exe "nunmap <buffer> [["' + .. '\n sil! exe "nunmap <buffer> gO"' + .. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["'