mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
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:
parent
e7020306a1
commit
8f5e908110
@ -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<'
|
||||
|
@ -1 +1,3 @@
|
||||
vim.bo.commentstring = '// %s'
|
||||
|
||||
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl commentstring<'
|
||||
|
@ -1 +1,3 @@
|
||||
vim.bo.commentstring = '// %s'
|
||||
|
||||
vim.b.undo_ftplugin = 'setl commentstring<'
|
||||
|
@ -1 +1,3 @@
|
||||
vim.bo.commentstring = '// %s'
|
||||
|
||||
vim.b.undo_ftplugin = 'setl commentstring<'
|
||||
|
@ -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'
|
||||
|
@ -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<'
|
||||
|
Loading…
Reference in New Issue
Block a user