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
|
if not self.active[key] then
|
||||||
self.active[key] = {}
|
self.active[key] = {}
|
||||||
self:_add(value)
|
self:_add(value)
|
||||||
|
self.managed[key] = key
|
||||||
end
|
end
|
||||||
self.managed[key] = self.managed[key]
|
|
||||||
self.active[key][plugin.name] = plugin.name
|
self.active[key][plugin.name] = plugin.name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,7 +47,7 @@ end
|
||||||
---@param mode? string
|
---@param mode? string
|
||||||
function M:have(lhs, mode)
|
function M:have(lhs, mode)
|
||||||
local keys = M.parse(lhs, mode)
|
local keys = M.parse(lhs, mode)
|
||||||
return self.managed[keys.id]
|
return self.managed[keys.id] ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param plugin LazyPlugin
|
---@param plugin LazyPlugin
|
||||||
|
|
Loading…
Reference in New Issue