From 7d755987ba6ea6ef8a3213f2119c5e31810ac913 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 2 Jan 2023 09:40:19 +0100 Subject: [PATCH] fix(spec): normalize deps before adding spec to make sure merging works as expected --- 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 81c2a58..5f01775 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -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