fix: lua_ls no longer exists in mason registry#1847
fix: lua_ls no longer exists in mason registry#1847veonim wants to merge 3 commits intonvim-lua:masterfrom
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. |
| -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` | ||
| { 'mason-org/mason.nvim', opts = {} }, | ||
|
|
||
| -- This plugin streamlines Neovim's LSP setup by automating server installation and activation, providing helpful management commands, and mapping mason.nvim packages to nvim-lspconfig configurations. |
There was a problem hiding this comment.
This comment line is too long. There seems to be a limit of 100 chars for all other comments in this file.
There was a problem hiding this comment.
I couldn't find a way to configure Stylua to format comment lines with a 100 column width by changing https://github.com/nvim-lua/kickstart.nvim/blob/master/.stylua.toml
All the other comments are formatted that way though, not sure if manually or with a different formatter.
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