Add cmp.EventConfig

This commit is contained in:
hrsh7th
2021-08-12 19:02:36 +09:00
parent 22f8ce1bd5
commit 17b0171e9f
4 changed files with 12 additions and 0 deletions

View File

@@ -254,6 +254,9 @@ core.confirm = vim.schedule_wrap(function(e, option, callback)
})
end
e:execute(function()
if config.get().event.on_confirm_done then
config.get().event.on_confirm_done(e)
end
if callback then
callback()
end