mirror of https://github.com/folke/lazy.nvim.git
fix(runner): bring concurrency back
This commit is contained in:
parent
206d208018
commit
56075b57c4
|
@ -96,6 +96,7 @@ function Runner:_start()
|
||||||
waiting = waiting + 1
|
waiting = waiting + 1
|
||||||
wait_step = s.step
|
wait_step = s.step
|
||||||
elseif not running then
|
elseif not running then
|
||||||
|
if not self._opts.concurrency or active < self._opts.concurrency then
|
||||||
local plugin = self:plugin(name)
|
local plugin = self:plugin(name)
|
||||||
if s.step == #self._pipeline then
|
if s.step == #self._pipeline then
|
||||||
s.task = nil
|
s.task = nil
|
||||||
|
@ -111,6 +112,7 @@ function Runner:_start()
|
||||||
plugin._.working = not not s.task
|
plugin._.working = not not s.task
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
active = active + 1
|
active = active + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue