Replies: 1 comment 7 replies
-
You probably want something like this local registry = require("mason-registry")
local function update_lualine()
local installed_packages = registry.get_installed_package_names()
local count = #installed_packages
-- do something with count
end
registry.refresh(update_lualine)
registry:on("package:install:success", update_lualine)
registry:on("package:uninstall:success", update_lualine) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use lualine and the lazy package manager. This combination has this little thingie:
which signals that new updates for lazy plugins are available.
I would like to have that for Mason. I know from the docs that mason has:
And i feel that this could be used for the same purpose. Did anybody do the same thing or even got a working example?
Beta Was this translation helpful? Give feedback.
All reactions