Skip to content

Commit

Permalink
feat(ui): show when plugin would be loaded for unloaded plugins. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 31, 2022
1 parent d02a10d commit 5575d2b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,22 @@ function M:plugin(plugin)
local plugin_start = self:row()
if plugin._.loaded then
self:reason(plugin._.loaded)
else
self:append(" ")
local reason = {}
for handler in pairs(Handler.types) do
if plugin[handler] then
for _, value in ipairs(plugin[handler]) do
reason[handler] = value
end
end
end
for _, other in pairs(Config.plugins) do
if vim.tbl_contains(other.dependencies or {}, plugin.name) then
reason.plugin = other.name
end
end
self:reason(reason)
end
self:diagnostics(plugin)
self:nl()
Expand Down

0 comments on commit 5575d2b

Please sign in to comment.