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