-
Notifications
You must be signed in to change notification settings - Fork 44.2k
fix: lua_ls no longer exists in mason registry #1847
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
base: master
Are you sure you want to change the base?
Conversation
|
This can be fixed by adding Personally, I think this is the cleaner way because it bridges the gap between lspconfig and mason and allows the installation and auto-enabling of lsp servers by the actual configuration name so maintaining the project will be easier over time. |
|
@vimjeremy Yeah, it did handled that perfectly. Thanks for suggestion, updated the PR |
|
If it means anything, I can confirm it works like a charm. |
c8bb937 to
141a232
Compare
|
Thanks for this! |
I'm a noob at this. At what line exactly in init.lua do I add this? And what should it look like exactly after I add it? |
|
Hey @badbabykosh , you'll want to add that dependency somewhere around this line. I added it right after. |
|
I've done all these changes to init.lua and still get the error. |
You can check the diff in the PR and see where it is placed. |
I just did a fresh install today and was thrown into an error that lua_ls not found.
Switched to lua-language-server, making this PR for base repository because other people might face this issue.
Edit:
Added
{ "mason-org/mason-lspconfig.nvim", opts = {} }based on the comment of vimjeremy, worked flawlessly