feat: add plugin name to handlers.managed

This commit is contained in:
Folke Lemaitre 2024-07-11 22:04:06 +02:00
parent 54b003c650
commit 17473db1d7
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ local Util = require("lazy.core.util")
---@field type LazyHandlerTypes
---@field extends? LazyHandler
---@field active table<string,table<string,string>>
---@field managed table<string,string>
---@field managed table<string,string> mapping handler keys to plugin names
---@field super LazyHandler
local M = {}
@ -114,7 +114,7 @@ function M:add(plugin)
if not self.active[key] then
self.active[key] = {}
self:_add(value)
self.managed[key] = key
self.managed[key] = plugin.name
end
self.active[key][plugin.name] = plugin.name
end