Skip to content

Commit da4e8cc

Browse files
committed
fix(spec): dont copy dep and super state from existing plugins
1 parent baaf8dd commit da4e8cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/lazy/core/plugin.lua

+4
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ function M.load()
363363
-- copy state. This wont do anything during startup
364364
for name, plugin in pairs(existing) do
365365
if Config.plugins[name] then
366+
local dep = Config.plugins[name]._.dep
367+
local super = Config.plugins[name]._.super
366368
Config.plugins[name]._ = plugin._
369+
Config.plugins[name]._.dep = dep
370+
Config.plugins[name]._.super = super
367371
end
368372
end
369373
Util.track()

0 commit comments

Comments
 (0)