From 39bb5d7ca233a9a5ab81fce7e6a5e2c83cdaff9d Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 24 Mar 2026 18:17:02 +0900 Subject: [PATCH] fix(runtime): stop treesitter highlight in b:undo_ftplugin #38459 Co-authored-by: Eisuke Kawashima --- runtime/ftplugin/markdown.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/ftplugin/markdown.lua b/runtime/ftplugin/markdown.lua index 1f42ff4d61..beea4bea7b 100644 --- a/runtime/ftplugin/markdown.lua +++ b/runtime/ftplugin/markdown.lua @@ -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 gO"' .. '\n sil! exe "nunmap ]]" | sil! exe "nunmap [["'