strict mapping handling

This commit is contained in:
hrsh7th
2021-11-08 20:38:08 +09:00
parent 1628c934d1
commit f831dbc107
2 changed files with 4 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ feedkeys.call = setmetatable({
table.insert(queue, { keymap.t('<Cmd>set %slazyredraw<CR>'):format(vim.o.lazyredraw and '' or 'no'), 'n' })
table.insert(queue, { keymap.t('<Cmd>set eventignore=%s<CR>'):format(vim.o.eventignore or ''), 'n' })
end
if callback then
local id = misc.id('cmp.utils.feedkeys.call')
self.callbacks[id] = callback
@@ -37,6 +38,7 @@ feedkeys.call = setmetatable({
vim.api.nvim_feedkeys(queue[i][1], queue[i][2], queue[i][3])
end
end
if is_immediate then
vim.api.nvim_feedkeys('', 'x', true)
end