refactor: split autoload in autoload and check_load

This commit is contained in:
Folke Lemaitre 2022-12-16 13:06:52 +01:00
parent f23a6eef8c
commit e897524b1f
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 26 additions and 17 deletions

View file

@ -36,7 +36,7 @@ function M.check_load(modname, modpath)
if modname:sub(1, 4) == "lazy" then
return
end
require("lazy.core.loader").autoload(modname, modpath)
require("lazy.core.loader").check_load(modname, modpath)
end
function M.disable()