mirror of https://github.com/folke/lazy.nvim.git
fix(ui): dont process handlers for disabled plugins
This commit is contained in:
parent
f5ed470de6
commit
8fe449cfcc
|
@ -411,13 +411,15 @@ function M:plugin(plugin)
|
||||||
else
|
else
|
||||||
self:append(" ")
|
self:append(" ")
|
||||||
local reason = {}
|
local reason = {}
|
||||||
for handler in pairs(Handler.types) do
|
if plugin._.kind ~= "disabled" then
|
||||||
if plugin[handler] then
|
for handler in pairs(Handler.types) do
|
||||||
local trigger = {}
|
if plugin[handler] then
|
||||||
for _, value in ipairs(plugin[handler]) do
|
local trigger = {}
|
||||||
table.insert(trigger, type(value) == "table" and value[1] or value)
|
for _, value in ipairs(plugin[handler]) do
|
||||||
|
table.insert(trigger, type(value) == "table" and value[1] or value)
|
||||||
|
end
|
||||||
|
reason[handler] = table.concat(trigger, " ")
|
||||||
end
|
end
|
||||||
reason[handler] = table.concat(trigger, " ")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for _, other in pairs(Config.plugins) do
|
for _, other in pairs(Config.plugins) do
|
||||||
|
|
Loading…
Reference in New Issue