Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add mason.status and mason.has_updates for programatic updates check #1843

Open
1 task done
den-is opened this issue Dec 13, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@den-is
Copy link

den-is commented Dec 13, 2024

I've searched open issues for similar requests

  • Yes

Is your feature request related to a problem? Please describe.

I constantly forget to check if packages installed via Mason have updates (LSs, formatters, linters, etc).
There are no visual cues, unless I recall and manually open :Mason to check for updates.

Describe the solution you'd like

lazy.nvim has useful API to check plugins update lazy.status and functions require("lazy.status").has_updates conditional check, require("lazy.status").updates outputs number of updates.

Here you can see example of how community uses it with lualine https://github.com/den-is/nvim/blob/f2afb9b194dfaa3c196dbf8d56c6dff254a33c06/lua/plugins/lualine.lua#L19-L23

Describe potential alternatives you've considered

I'm not lua/neovim pro I've google for the similar issue and read Mason doc/src_code but did not find anything similar to solve it.

Additional context

No response

@den-is den-is added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant