Skip to content

Commit

Permalink
fix(spec): dont complain about an invalid short url, when a full url …
Browse files Browse the repository at this point in the history
…is set. Fixes #421
  • Loading branch information
folke committed Jan 18, 2023
1 parent 813fc94 commit c389ad5
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 @@ -119,7 +119,7 @@ function Spec:add(plugin, results, is_dep)
plugin.dependencies = plugin.dependencies and self:normalize(plugin.dependencies, {}, true) or nil
if self.plugins[plugin.name] then
plugin = self:merge(self.plugins[plugin.name], plugin)
elseif is_ref then
elseif is_ref and not plugin.url then
self:error("Plugin spec for **" .. plugin.name .. "** not found.\n```lua\n" .. vim.inspect(plugin) .. "\n```")
return
end
Expand Down

0 comments on commit c389ad5

Please sign in to comment.