Skip to content

Commit

Permalink
fix(spec): dont copy dep and super state from existing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 17, 2023
1 parent baaf8dd commit da4e8cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit da4e8cc

Please sign in to comment.