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
6 changed files with 11 additions and 1 deletions

View File

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

View File

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

View File

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

View File

@ -30,3 +30,5 @@ end
vim.keymap.set('n', 'gO', function() vim.keymap.set('n', 'gO', function()
require('vim.vimhelp').show_toc() require('vim.vimhelp').show_toc()
end, { buffer = 0, silent = true }) 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! -- it's a lisp!
vim.cmd([[ runtime! ftplugin/lisp.vim ]]) vim.cmd([[ runtime! ftplugin/lisp.vim ]])
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl omnifunc< iskeyword<'