fix: lua language server rename

This commit is contained in:
Jeremy 2026-02-14 17:16:50 -08:00
parent f35f569663
commit d2f9d1f0f4
1 changed files with 4 additions and 4 deletions

View File

@ -535,7 +535,7 @@ require('lazy').setup({
-- and language tooling communicate in a standardized fashion. -- and language tooling communicate in a standardized fashion.
-- --
-- In general, you have a "server" which is some tool built to understand a particular -- In general, you have a "server" which is some tool built to understand a particular
-- language (such as `gopls`, `lua_ls`, `rust_analyzer`, etc.). These Language Servers -- language (such as `gopls`, `lua-language-server`, `rust_analyzer`, etc.). These Language Servers
-- (sometimes called LSP servers, but that's kind of like ATM Machine) are standalone -- (sometimes called LSP servers, but that's kind of like ATM Machine) are standalone
-- processes that communicate with some "client" - in this case, Neovim! -- processes that communicate with some "client" - in this case, Neovim!
-- --
@ -679,7 +679,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
'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
}) })
@ -693,7 +693,7 @@ require('lazy').setup({
end end
-- Special Lua Config, as recommended by neovim help docs -- Special Lua Config, as recommended by neovim help docs
vim.lsp.config('lua_ls', { vim.lsp.config('lua-language-server', {
on_init = function(client) on_init = function(client)
if client.workspace_folders then if client.workspace_folders then
local path = client.workspace_folders[1].name local path = client.workspace_folders[1].name
@ -717,7 +717,7 @@ require('lazy').setup({
Lua = {}, Lua = {},
}, },
}) })
vim.lsp.enable 'lua_ls' vim.lsp.enable 'lua-language-server'
end, end,
}, },