mirror of https://github.com/folke/lazy.nvim.git
feat(cache): update package.loaded on require
This commit is contained in:
parent
b813fae61c
commit
021e54655f
|
@ -158,7 +158,9 @@ function M.load(modkey, modpath)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.require(modname)
|
function M.require(modname)
|
||||||
return M.loader(modname)()
|
local mod = M.loader(modname)()
|
||||||
|
package.loaded[modname] = mod
|
||||||
|
return mod
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param modname string
|
---@param modname string
|
||||||
|
|
Loading…
Reference in New Issue