Skip to content

Commit

Permalink
feat(plugin): treat url changes as warnings. They will only be shown …
Browse files Browse the repository at this point in the history
…with checkhealth
  • Loading branch information
folke committed Oct 14, 2023
1 parent 1c16e42 commit 0c53d46
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 @@ -441,7 +441,7 @@ function Spec:merge(old, new)
new._.dep = old._.dep and new._.dep

if new.url and old.url and new.url ~= old.url then
self:error("Two plugins with the same name and different url:\n" .. vim.inspect({ old = old, new = new }))
self:warn("Two plugins with the same name and different url:\n" .. vim.inspect({ old = old, new = new }))
end

if new.dependencies and old.dependencies then
Expand Down

0 comments on commit 0c53d46

Please sign in to comment.