diff --git a/lua/lazy/status.lua b/lua/lazy/status.lua new file mode 100644 index 0000000..94e9575 --- /dev/null +++ b/lua/lazy/status.lua @@ -0,0 +1,16 @@ +local Config = require("lazy.core.config") + +local M = {} + +function M.updates() + local Checker = require("lazy.manage.checker") + local updates = #Checker.updated + return updates > 0 and (Config.options.ui.icons.plugin .. "" .. updates) +end + +function M.has_updates() + local Checker = require("lazy.manage.checker") + return #Checker.updated > 0 +end + +return M