Update LSP server name from lua_ls to lua-language-server

This commit is contained in:
William Abecassis 2026-02-24 10:23:56 -08:00 committed by GitHub
parent e8378d3b79
commit c11ac53f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -498,7 +498,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!
-- --
@ -628,7 +628,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
@ -652,7 +652,7 @@ require('lazy').setup({
Lua = {}, Lua = {},
}, },
}) })
vim.lsp.enable 'lua_ls' vim.lsp.enable 'lua-language-server'
end, end,
}, },