mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor(cache): documented the cache in preparation to upstream
This commit is contained in:
parent
5550f99271
commit
1a34636094
3 changed files with 52 additions and 18 deletions
|
@ -476,7 +476,7 @@ end
|
|||
---@param modname string
|
||||
function M.loader(modname)
|
||||
local paths = Util.get_unloaded_rtp(modname)
|
||||
local modpath, hash = Cache._Cache.find(modname, { rtp = false, paths = paths })
|
||||
local modpath, hash = Cache.find(modname, { rtp = false, paths = paths })
|
||||
if modpath then
|
||||
M.auto_load(modname, modpath)
|
||||
local mod = package.loaded[modname]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue