Skip to content

Commit

Permalink
fix(plugin): only get plugin from spec when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 2, 2023
1 parent 9893430 commit ce3e1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function M.find(path)
local slash = name:reverse():find("/", 1, true)
if slash then
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
Expand Down

0 comments on commit ce3e1fc

Please sign in to comment.