fix: lua language server rename
This commit is contained in:
parent
f35f569663
commit
d2f9d1f0f4
8
init.lua
8
init.lua
|
|
@ -535,7 +535,7 @@ require('lazy').setup({
|
|||
-- and language tooling communicate in a standardized fashion.
|
||||
--
|
||||
-- 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
|
||||
-- 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.
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
'lua_ls', -- Lua Language server
|
||||
'lua-language-server', -- Lua Language server
|
||||
'stylua', -- Used to format Lua code
|
||||
-- You can add other tools here that you want Mason to install
|
||||
})
|
||||
|
|
@ -693,7 +693,7 @@ require('lazy').setup({
|
|||
end
|
||||
|
||||
-- Special Lua Config, as recommended by neovim help docs
|
||||
vim.lsp.config('lua_ls', {
|
||||
vim.lsp.config('lua-language-server', {
|
||||
on_init = function(client)
|
||||
if client.workspace_folders then
|
||||
local path = client.workspace_folders[1].name
|
||||
|
|
@ -717,7 +717,7 @@ require('lazy').setup({
|
|||
Lua = {},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable 'lua_ls'
|
||||
vim.lsp.enable 'lua-language-server'
|
||||
end,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue