Fix #376
This commit is contained in:
@@ -80,13 +80,15 @@ vim.cmd [[command! CmpStatus lua require('cmp').status()]]
|
|||||||
|
|
||||||
vim.cmd [[doautocmd <nomodeline> User cmp#ready]]
|
vim.cmd [[doautocmd <nomodeline> User cmp#ready]]
|
||||||
|
|
||||||
vim.on_key(function(keys)
|
if vim.on_key then
|
||||||
if keys == vim.api.nvim_replace_termcodes('<C-c>', true, true, true) then
|
vim.on_key(function(keys)
|
||||||
vim.schedule(function()
|
if keys == vim.api.nvim_replace_termcodes('<C-c>', true, true, true) then
|
||||||
if not api.is_suitable_mode() then
|
vim.schedule(function()
|
||||||
require('cmp.utils.autocmd').emit('InsertLeave')
|
if not api.is_suitable_mode() then
|
||||||
end
|
require('cmp.utils.autocmd').emit('InsertLeave')
|
||||||
end)
|
end
|
||||||
end
|
end)
|
||||||
end, vim.api.nvim_create_namespace('cmp.plugin'))
|
end
|
||||||
|
end, vim.api.nvim_create_namespace('cmp.plugin'))
|
||||||
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user