1
0
Fork 0
mirror of https://github.com/folke/lazy.nvim.git synced 2025-04-13 18:35:49 +00:00

feat(ui): show updates available diagnostic when an update is available

This commit is contained in:
Folke Lemaitre 2022-12-14 16:07:53 +01:00
parent 8de617c01b
commit ad0b4caa64
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -274,6 +274,10 @@ function M:diagnostics(plugin)
message = "updated from " .. plugin._.updated.from:sub(1, 7) .. " to " .. plugin._.updated.to:sub(1, 7), message = "updated from " .. plugin._.updated.from:sub(1, 7) .. " to " .. plugin._.updated.to:sub(1, 7),
}) })
end end
elseif plugin._.has_updates then
self:diagnostic({
message = "updates available",
})
end end
for _, task in ipairs(plugin._.tasks or {}) do for _, task in ipairs(plugin._.tasks or {}) do
if task:is_running() then if task:is_running() then