mirror of https://github.com/folke/lazy.nvim.git
fix(keys): fixed adding managed keys
This commit is contained in:
parent
9102d051a8
commit
9d92e65fd1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue