Skip to content

Commit

Permalink
fix(loader): when reloading, clear plugin properties cache (#1153)
Browse files Browse the repository at this point in the history
See #445
  • Loading branch information
Supremist authored Oct 25, 2023
1 parent e42fccc commit 312e424
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ function M.deactivate(plugin)
-- disable handlers
Handler.disable(plugin)

-- clear plugin properties cache
plugin._.cache = nil

-- remove loaded lua modules
Util.walkmods(plugin.dir .. "/lua", function(modname)
package.loaded[modname] = nil
Expand Down

0 comments on commit 312e424

Please sign in to comment.