fix(runtime): update b:undo_ftplugin in Lua runtime files (#29529)

Related to #29506, but adding vim.treesitter.stop() to b:undo_ftplugin
doesn't solve the problem yet.
This commit is contained in:
zeertzjq 2024-07-01 17:48:09 +08:00 committed by GitHub
parent e7020306a1
commit 8f5e908110
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 1 deletions

View File

@ -11,4 +11,4 @@ if vim.fn.isdirectory('/usr/include') == 1 then
]])
end
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. '|setl path<'
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl path<'

View File

@ -1 +1,3 @@
vim.bo.commentstring = '// %s'
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl commentstring<'

View File

@ -1 +1,3 @@
vim.bo.commentstring = '// %s'
vim.b.undo_ftplugin = 'setl commentstring<'

View File

@ -1 +1,3 @@
vim.bo.commentstring = '// %s'
vim.b.undo_ftplugin = 'setl commentstring<'

View File

@ -30,3 +30,5 @@ end
vim.keymap.set('n', 'gO', function()
require('vim.vimhelp').show_toc()
end, { buffer = 0, silent = true })
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | nunmap <buffer> gO'

View File

@ -33,3 +33,5 @@ end
-- it's a lisp!
vim.cmd([[ runtime! ftplugin/lisp.vim ]])
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl omnifunc< iskeyword<'