From c389ad552bd5c2050783ac6cd6e54f5fbba3c7bc Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 18 Jan 2023 08:31:55 +0100 Subject: [PATCH] fix(spec): dont complain about an invalid short url, when a full url is set. Fixes #421 --- lua/lazy/core/plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index b7179c9..4873249 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -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