Use key sequence to avoid the invalid mode detection

This commit is contained in:
hrsh7th
2021-11-09 14:05:13 +09:00
parent 453a62f882
commit a0053885ba

View File

@@ -271,8 +271,7 @@ cmp.setup = setmetatable({
}) })
autocmd.subscribe('InsertEnter', function() autocmd.subscribe('InsertEnter', function()
--Avoid invalid mode detection on `InsertEnter` autocmd. feedkeys.call('', '', function()
vim.schedule(function()
if config.enabled() then if config.enabled() then
cmp.core:prepare() cmp.core:prepare()
cmp.core:on_change('InsertEnter') cmp.core:on_change('InsertEnter')