Closed BoolPurist closed 1 year ago
Oh man! That's really bad! I'll investigate this :O
Oh, I see, MasonUpdate
is now a command provided by Mason.... shooot...
Ok, just to put my thoughts here from my investigation. Mason with their new external registry model has added the command :MasonUpdate
which updates the registries and it takes no parameters. This means we need to ideally change our user command here to not conflict which would enforce a breaking change. We will punt this adjustment to AstroNvim v4. In the mean time given the nature of how our command works anyway is that we also update the registries before doing these updates anyway. So I have restructured this command to simply extend the default Mason behavior. If you just call :MasonUpdate
with no arguments it will simply do the default Mason behavior of just updating the registries. If you supply an argument then it will also update that specific package. In the meantime I have also extended this further to allow multiple arguments to be passed as well so you can now specify multiple packages that you want to update in particular. This should be a pretty alright override of the default Mason behavior for now.
Things to do with AstroNvim v4 (comments provided in the code as reminders): Change these auto command names so we do not have to worry about overriding this default behavior.
Can confirm this fixes my problem in the meantime. Thanks
Checklist
:AstroUpdate
Operating system/version
Fedora Linux 37 (Cinnamon) x86_64 with linux kernel 6.2.7-200.fc37.x86_64
Terminal/GUI
Terminal: Alacritty and Multiplexer: Tmux
AstroNvim Health
AstroNvim
git
is installed: Used for core functionality such as updater and plugin managementxdg-open
is installed: Used forgx
mapping for opening files with system opener (Optional)lazygit
is not installed: Used for mappings to pull up git TUI (Optional)node
is installed: Used for mappings to pull up node REPL (Optional)gdu
is not installed: Used for mappings to pull up disk usage analyzer (Optional)btm
is not installed: Used for mappings to pull up system monitor (Optional)python
is installed: Used for mappings to pull up python REPL (Optional)Describe the bug
I want to update rust analyzer in mason selectively. When I however type in the command " MasonUpdate rust_analyzer " then I get the error message which does not make any sense to me.
I use "rust_analyzer" because that is shown by the command "LspInfo" if I am in a rust file.
I made sure there are no white spaces after the command. Trailling character sounds wrong to me here.
Steps to Reproduce
Expected behavior
Either
Screenshots
No response
Additional Context
No response