fix(runtime): stop treesitter highlight in b:undo_ftplugin #38459

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
Eisuke Kawashima
2026-03-24 18:17:02 +09:00
committed by GitHub
parent 929f03fa8c
commit 39bb5d7ca2

View File

@@ -12,5 +12,6 @@ vim.keymap.set('n', '[[', function()
end, { buf = 0, silent = false, desc = 'Jump to previous section' })
vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '')
.. '\n call v:lua.vim.treesitter.stop()'
.. '\n sil! exe "nunmap <buffer> gO"'
.. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["'