mirror of https://github.com/folke/lazy.nvim.git
fix(cache): if we can't load from the cache modpath, find path again instead of erroring right away
This commit is contained in:
parent
bbace14dc9
commit
a345649510
|
@ -95,7 +95,8 @@ function M.loader(modname)
|
|||
end
|
||||
end
|
||||
chunk, err = M.load(modname, entry.modpath)
|
||||
else
|
||||
end
|
||||
if not chunk then
|
||||
-- find the modpath and load the module
|
||||
local modpath = M.find(modname)
|
||||
if modpath then
|
||||
|
|
Loading…
Reference in New Issue