mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): show new version that is available instead of general message
This commit is contained in:
parent
a9de5910f2
commit
34e2c78e06
6 changed files with 20 additions and 11 deletions
|
@ -345,10 +345,17 @@ function M:diagnostics(plugin)
|
|||
message = "updated from " .. plugin._.updated.from:sub(1, 7) .. " to " .. plugin._.updated.to:sub(1, 7),
|
||||
})
|
||||
end
|
||||
elseif plugin._.has_updates then
|
||||
self:diagnostic({
|
||||
message = "updates available",
|
||||
})
|
||||
elseif plugin._.updates then
|
||||
local version = plugin._.updates.to.version
|
||||
if version then
|
||||
self:diagnostic({
|
||||
message = "version " .. tostring(version) .. " is available",
|
||||
})
|
||||
else
|
||||
self:diagnostic({
|
||||
message = "updates available",
|
||||
})
|
||||
end
|
||||
end
|
||||
for _, task in ipairs(plugin._.tasks or {}) do
|
||||
if task:is_running() then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue