mirror of
https://github.com/neovim/neovim
synced 2025-07-19 10:41:48 +00: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:
@ -1 +1,3 @@
|
|||||||
vim.bo.commentstring = '// %s'
|
vim.bo.commentstring = '// %s'
|
||||||
|
|
||||||
|
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl commentstring<'
|
||||||
|
@ -1 +1,3 @@
|
|||||||
vim.bo.commentstring = '// %s'
|
vim.bo.commentstring = '// %s'
|
||||||
|
|
||||||
|
vim.b.undo_ftplugin = 'setl commentstring<'
|
||||||
|
@ -1 +1,3 @@
|
|||||||
vim.bo.commentstring = '// %s'
|
vim.bo.commentstring = '// %s'
|
||||||
|
|
||||||
|
vim.b.undo_ftplugin = 'setl commentstring<'
|
||||||
|
@ -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'
|
||||||
|
@ -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<'
|
||||||
|
Reference in New Issue
Block a user