From da4e8cc2450ec428d370032b5b3790b01889c4a4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 17 Jan 2023 13:55:04 +0100 Subject: [PATCH] fix(spec): dont copy dep and super state from existing plugins --- lua/lazy/core/plugin.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index 3bb6ee5..baf63ef 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -363,7 +363,11 @@ function M.load() -- copy state. This wont do anything during startup for name, plugin in pairs(existing) do if Config.plugins[name] then + local dep = Config.plugins[name]._.dep + local super = Config.plugins[name]._.super Config.plugins[name]._ = plugin._ + Config.plugins[name]._.dep = dep + Config.plugins[name]._.super = super end end Util.track()