fix(nvim): better validate when updates are available in lazy
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
This commit is contained in:
parent
8ffa964ee7
commit
3cbb3faa5b
@ -87,10 +87,11 @@ return {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@string" })
|
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@string" })
|
||||||
|
local lstatus = require("lazy.status")
|
||||||
local plugin_info = {
|
local plugin_info = {
|
||||||
type = "text",
|
type = "text",
|
||||||
val = function()
|
val = function()
|
||||||
if require("lazy.status").has_updates() then
|
if lstatus.has_updates() and lstatus.updates() then
|
||||||
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@keyword.return" })
|
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@keyword.return" })
|
||||||
return "Plugin updates available!"
|
return "Plugin updates available!"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user