Fix timing problem for some of the snippet engine

Fixes #236
This commit is contained in:
hrsh7th
2021-09-24 16:35:28 +09:00
parent 7c97261b82
commit cc21a61910

View File

@@ -383,7 +383,7 @@ core.confirm = function(e, option, callback)
insert_text_mode = completion_item.insertTextMode, insert_text_mode = completion_item.insertTextMode,
}) })
end end
e:execute(function() e:execute(vim.schedule_wrap(function()
suspending() suspending()
if config.get().event.on_confirm_done then if config.get().event.on_confirm_done then
@@ -392,7 +392,7 @@ core.confirm = function(e, option, callback)
if callback then if callback then
callback() callback()
end end
end) end))
end) end)
end) end)
end) end)