Skip to content

Commit

Permalink
feat: add plugin name to handlers.managed
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 11, 2024
1 parent 54b003c commit 17473db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/core/handler/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 17473db

Please sign in to comment.