Skip to content

Commit

Permalink
fix(nvim-plug): fix job queue
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Feb 7, 2025
1 parent 0f9396a commit a0fd8e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundle/nvim-plug/lua/plug/installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ local function install_plugin(plugSpec)
processes = processes - 1
if #installation_queue > 0 then
install_plugin(table.remove(installation_queue, 1))
elseif #building_queue > 0 then
build(table.remove(building_queue, 1))
end
end,
env = {
Expand Down Expand Up @@ -174,6 +176,8 @@ local function update_plugin(plugSpec, force)
processes = processes - 1
if #updating_queue > 0 then
update_plugin(unpack(table.remove(updating_queue, 1)))
elseif #building_queue > 0 then
build(table.remove(building_queue, 1))
end
end,
cwd = plugSpec.path,
Expand Down

0 comments on commit a0fd8e3

Please sign in to comment.