fix(keys): fixed adding managed keys

This commit is contained in:
Folke Lemaitre 2023-10-08 19:14:33 +02:00
parent 9102d051a8
commit 9d92e65fd1
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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