Improve avoiding InsertEnter's invalid mode detection

This commit is contained in:
hrsh7th
2021-11-09 15:01:44 +09:00
parent 3968bea5e2
commit 823c73c16d

View File

@@ -271,7 +271,7 @@ cmp.setup = setmetatable({
})
autocmd.subscribe('InsertEnter', function()
feedkeys.call('', '', function()
feedkeys.call('', 'i', function()
if config.enabled() then
cmp.core:prepare()
cmp.core:on_change('InsertEnter')