Skip to content

Commit 147f5a3

Browse files
committed
fix(luarocks): add plugin to lua path if it was already loaded before we know its a luarock
1 parent 6c3bda4 commit 147f5a3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/lazy/pkg/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ function M.update()
6363
pkg.spec = { _raw = spec.code }
6464
end
6565
table.insert(ret.pkgs, pkg)
66+
if not plugin._.pkg and plugin._.loaded and pkg.source == "rockspec" then
67+
require("lazy.core.loader").add_to_luapath(plugin)
68+
end
6669
break
6770
end
6871
end

0 commit comments

Comments
 (0)