mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: lazy caching now works with functions that have upvalues
This commit is contained in:
parent
48199f8031
commit
fe33e4e3dd
9 changed files with 161 additions and 187 deletions
|
@ -153,9 +153,9 @@ function M:reason(plugin)
|
|||
if modname then
|
||||
modname = modname:gsub("/", ".")
|
||||
end
|
||||
local pack = source:match("/([^/]-)/lua")
|
||||
local name = source:match("/([^/]-)/lua")
|
||||
for _, other in pairs(Config.plugins) do
|
||||
if (modname and other.modname == modname) or (pack and other.pack == pack) then
|
||||
if (modname and other.modname == modname) or (name and other.name == name) then
|
||||
reason.plugin = other.name
|
||||
reason.source = nil
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue