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
|
||||
else
|
||||
---@cast spec LazyPlugin
|
||||
spec.dependencies = spec.dependencies and self:normalize(spec.dependencies, {}, true) or nil
|
||||
plugin = self:add(spec, is_dep)
|
||||
plugin.dependencies = plugin.dependencies and self:normalize(plugin.dependencies, {}, true) or nil
|
||||
end
|
||||
table.insert(results, plugin.name)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue