diff --git a/lua/lazy/core/handler/init.lua b/lua/lazy/core/handler/init.lua index 9a3fd5a..dce3415 100644 --- a/lua/lazy/core/handler/init.lua +++ b/lua/lazy/core/handler/init.lua @@ -95,8 +95,8 @@ function M:add(plugin) if not self.active[key] then self.active[key] = {} self:_add(value) + self.managed[key] = key end - self.managed[key] = self.managed[key] self.active[key][plugin.name] = plugin.name end end diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index 9253102..30a4b4f 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -47,7 +47,7 @@ end ---@param mode? string function M:have(lhs, mode) local keys = M.parse(lhs, mode) - return self.managed[keys.id] + return self.managed[keys.id] ~= nil end ---@param plugin LazyPlugin