fix(lsp): use Mason package name for Lua language server
mason-tool-installer expects the Mason registry name "lua-language-server", not the LSP config name "lua_ls". The lsp.config/lsp.enable calls correctly keep using "lua_ls". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1390d451d5
commit
1bd326fbb1
2
init.lua
2
init.lua
|
|
@ -614,7 +614,7 @@ require('lazy').setup({
|
||||||
-- You can press `g?` for help in this menu.
|
-- You can press `g?` for help in this menu.
|
||||||
local ensure_installed = vim.tbl_keys(servers or {})
|
local ensure_installed = vim.tbl_keys(servers or {})
|
||||||
vim.list_extend(ensure_installed, {
|
vim.list_extend(ensure_installed, {
|
||||||
'lua_ls', -- Lua Language server
|
'lua-language-server', -- Lua Language server (Mason package name)
|
||||||
'stylua', -- Used to format Lua code
|
'stylua', -- Used to format Lua code
|
||||||
-- You can add other tools here that you want Mason to install
|
-- You can add other tools here that you want Mason to install
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue