Skip to content

fix: lua_ls no longer exists in mason registry#1847

Open
veonim wants to merge 3 commits intonvim-lua:masterfrom
veonim:mason-lua-ls-fix
Open

fix: lua_ls no longer exists in mason registry#1847
veonim wants to merge 3 commits intonvim-lua:masterfrom
veonim:mason-lua-ls-fix

Conversation

@veonim
Copy link

@veonim veonim commented Jan 28, 2026

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

@veonim veonim changed the title lua_ls no longer exists in mason registry fix: lua_ls no longer exists in mason registry Jan 28, 2026
@vimjeremy
Copy link

vimjeremy commented Jan 28, 2026

This can be fixed by adding { "mason-org/mason-lspconfig.nvim", opts = {} } to mason's dependencies

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.

@veonim
Copy link
Author

veonim commented Jan 28, 2026

@vimjeremy Yeah, it did handled that perfectly. Thanks for suggestion, updated the PR

@nemanjaglumac
Copy link

If it means anything, I can confirm it works like a charm.
Thank you

dvessel added a commit to dvessel/kickstart.nvim that referenced this pull request Feb 1, 2026
@ArionMiles
Copy link

ArionMiles commented Feb 3, 2026

Thanks for this!

@veonim veonim requested a review from vimjeremy February 3, 2026 07:14
rtomrud added a commit to rtomrud/kickstart.nvim that referenced this pull request Feb 3, 2026
RichardVigars added a commit to RichardVigars/kickstart.nvim that referenced this pull request Feb 4, 2026
@badbabykosh
Copy link

badbabykosh commented Feb 5, 2026

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

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?

@kalebingerick
Copy link

Hey @badbabykosh , you'll want to add that dependency somewhere around this line. I added it right after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants