mirror of https://github.com/folke/lazy.nvim.git
fix(loader): explicitely set package.loaded.modname to nil to prevent recursive loading errors
This commit is contained in:
parent
34b0126e5b
commit
12f2c74244
|
@ -552,6 +552,8 @@ function M.loader(modname)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ret then
|
if ret then
|
||||||
|
-- explicitly set to nil to prevent loading errors
|
||||||
|
package.loaded[modname] = nil
|
||||||
M.auto_load(modname, ret.modpath)
|
M.auto_load(modname, ret.modpath)
|
||||||
local mod = package.loaded[modname]
|
local mod = package.loaded[modname]
|
||||||
if type(mod) == "table" then
|
if type(mod) == "table" then
|
||||||
|
|
Loading…
Reference in New Issue