fix(ui): dont process handlers for disabled plugins

This commit is contained in:
Folke Lemaitre 2023-09-29 10:35:47 +02:00
parent f5ed470de6
commit 8fe449cfcc
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 8 additions and 6 deletions

View File

@ -411,6 +411,7 @@ function M:plugin(plugin)
else
self:append(" ")
local reason = {}
if plugin._.kind ~= "disabled" then
for handler in pairs(Handler.types) do
if plugin[handler] then
local trigger = {}
@ -420,6 +421,7 @@ function M:plugin(plugin)
reason[handler] = table.concat(trigger, " ")
end
end
end
for _, other in pairs(Config.plugins) do
if vim.tbl_contains(other.dependencies or {}, plugin.name) then
reason.plugin = other.name