mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(manage): added user events when operations finish. Fixes #135
This commit is contained in:
parent
3352fc6265
commit
a36d506393
4 changed files with 39 additions and 6 deletions
|
@ -139,7 +139,10 @@ end
|
|||
---@param cb? fun()
|
||||
function Runner:wait(cb)
|
||||
if #self._running == 0 then
|
||||
return cb and cb()
|
||||
if cb then
|
||||
cb()
|
||||
end
|
||||
return self
|
||||
end
|
||||
|
||||
if cb then
|
||||
|
@ -150,6 +153,7 @@ function Runner:wait(cb)
|
|||
vim.wait(10)
|
||||
end
|
||||
end
|
||||
return self
|
||||
end
|
||||
|
||||
return Runner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue