mirror of https://github.com/folke/lazy.nvim.git
fix(spec): normalize deps before adding spec to make sure merging works as expected
This commit is contained in:
parent
77ff7beaa4
commit
7d755987ba
|
@ -120,8 +120,8 @@ function Spec:normalize(spec, results, is_dep)
|
||||||
plugin = spec
|
plugin = spec
|
||||||
else
|
else
|
||||||
---@cast spec LazyPlugin
|
---@cast spec LazyPlugin
|
||||||
|
spec.dependencies = spec.dependencies and self:normalize(spec.dependencies, {}, true) or nil
|
||||||
plugin = self:add(spec, is_dep)
|
plugin = self:add(spec, is_dep)
|
||||||
plugin.dependencies = plugin.dependencies and self:normalize(plugin.dependencies, {}, true) or nil
|
|
||||||
end
|
end
|
||||||
table.insert(results, plugin.name)
|
table.insert(results, plugin.name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue