mirror of https://github.com/folke/lazy.nvim.git
feat: add plugin name to handlers.managed
This commit is contained in:
parent
54b003c650
commit
17473db1d7
|
@ -5,7 +5,7 @@ local Util = require("lazy.core.util")
|
||||||
---@field type LazyHandlerTypes
|
---@field type LazyHandlerTypes
|
||||||
---@field extends? LazyHandler
|
---@field extends? LazyHandler
|
||||||
---@field active table<string,table<string,string>>
|
---@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
|
---@field super LazyHandler
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ 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
|
self.managed[key] = plugin.name
|
||||||
end
|
end
|
||||||
self.active[key][plugin.name] = plugin.name
|
self.active[key][plugin.name] = plugin.name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue