diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index 7cbd6f8..0dc9e9f 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -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