Skip to content

Commit

Permalink
feat(ui): show indication of plugins that need build. See #1563
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 27, 2024
1 parent 2e1167d commit 53f314d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,12 @@ function M:diagnostics(plugin)
if skip then
return
end
if plugin._.updated then
if plugin._.build then
self:diagnostic({
message = "needs build",
severity = vim.diagnostic.severity.WARN,
})
elseif plugin._.updated then
if plugin._.updated.from == plugin._.updated.to then
self:diagnostic({
message = "already up to date",
Expand Down
6 changes: 6 additions & 0 deletions lua/lazy/view/sections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ return {
end,
title = "Working",
},
{
filter = function(plugin)
return plugin._.build
end,
title = "Build",
},
{
filter = function(plugin)
return has_task(plugin, function(task)
Expand Down

0 comments on commit 53f314d

Please sign in to comment.