mirror of https://github.com/folke/lazy.nvim.git
fix(plugin): only get plugin from spec when needed.
This commit is contained in:
parent
9893430187
commit
ce3e1fc560
|
@ -301,7 +301,7 @@ function M.find(path)
|
||||||
local slash = name:reverse():find("/", 1, true)
|
local slash = name:reverse():find("/", 1, true)
|
||||||
if slash then
|
if slash then
|
||||||
name = name:sub(#name - slash + 2)
|
name = name:sub(#name - slash + 2)
|
||||||
return name and Config.spec.plugins[name] or nil
|
return name and Config.plugins[name] or Config.spec.plugins[name] or nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue