diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index 81d85f6..c710412 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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