feat(ui): show indication of plugins that need build. See #1563

This commit is contained in:
Folke Lemaitre 2024-06-27 11:31:20 +02:00
parent 2e1167df4a
commit 53f314d9e6
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 12 additions and 1 deletions

View File

@ -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",

View File

@ -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)