Skip to content

Commit 315be83

Browse files
committed
feat(ui): added statusline component to show pending updates
1 parent 65cd28e commit 315be83

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lua/lazy/status.lua

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
local Config = require("lazy.core.config")
2+
3+
local M = {}
4+
5+
function M.updates()
6+
local Checker = require("lazy.manage.checker")
7+
local updates = #Checker.updated
8+
return updates > 0 and (Config.options.ui.icons.plugin .. "" .. updates)
9+
end
10+
11+
function M.has_updates()
12+
local Checker = require("lazy.manage.checker")
13+
return #Checker.updated > 0
14+
end
15+
16+
return M

0 commit comments

Comments
 (0)