mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(runtime): avoid E31 in ftplugin (#32578)
fix: twice nunmap in ftplugin
This commit is contained in:
@@ -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> [["'
|
||||
|
@@ -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()'
|
||||
|
@@ -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> [["'
|
||||
|
Reference in New Issue
Block a user