Skip to content

Commit

Permalink
fix(sync): wait for installed rocks.nvim modules to load (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Dec 18, 2024
1 parent 910e9f2 commit 02c1046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/rocks/operations/sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ operations.sync = function(user_rocks, on_complete)
until vim.tbl_isempty(prunable_rocks)

adapter.synchronise_site_symlinks()

vim
.iter(sync_status.to_install)
---@param rock_name string
Expand All @@ -260,7 +261,9 @@ operations.sync = function(user_rocks, on_complete)
:filter(function(rock_spec)
return rock_spec ~= nil
end)
:each(helpers.dynamic_load)
:each(function(rock_spec)
helpers.dynamic_load(rock_spec).wait()
end)

helpers.postInstall()
if not vim.tbl_isempty(error_handles) then
Expand Down

0 comments on commit 02c1046

Please sign in to comment.