mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(snippet): sync tabstop text also if pmenu is visible (#35250)
Using a snippet like: ${1:name} :: ${2}\n${1:name} ${3}= ${4:undefined}${0} The text for `${1:name}` stopped syncing if the completion popup menu showed up. E.g. typing `par` where the `a` triggered completion resulted in: pat :: pa = undefined Instead of: pat :: pat = undefined
This commit is contained in:

committed by
GitHub

parent
fa92a0b9fe
commit
1968029003
@@ -375,7 +375,7 @@ local function setup_autocmds(bufnr)
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ 'TextChanged', 'TextChangedI' }, {
|
vim.api.nvim_create_autocmd({ 'TextChanged', 'TextChangedI', 'TextChangedP' }, {
|
||||||
group = snippet_group,
|
group = snippet_group,
|
||||||
desc = 'Update active tabstops when buffer text changes',
|
desc = 'Update active tabstops when buffer text changes',
|
||||||
buffer = bufnr,
|
buffer = bufnr,
|
||||||
|
Reference in New Issue
Block a user