mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
refactor: lua language server rename (#185)
The lua language server from sumneko had changed its repo and created a new organizational repo. See also https://github.com/neovim/nvim-lspconfig/pull/2439.
This commit is contained in:
@@ -180,8 +180,8 @@ if utils.executable("bash-language-server") then
|
||||
end
|
||||
|
||||
if utils.executable("lua-language-server") then
|
||||
-- settings for lua-language-server can be found on https://github.com/sumneko/lua-language-server/wiki/Settings .
|
||||
lspconfig.sumneko_lua.setup {
|
||||
-- settings for lua-language-server can be found on https://github.com/LuaLS/lua-language-server/wiki/Settings .
|
||||
lspconfig.lua_ls.setup {
|
||||
on_attach = custom_attach,
|
||||
settings = {
|
||||
Lua = {
|
||||
@@ -195,8 +195,8 @@ if utils.executable("lua-language-server") then
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files,
|
||||
-- see also https://github.com/sumneko/lua-language-server/wiki/Libraries#link-to-workspace .
|
||||
-- Lua-dev.nvim also has similar settings for sumneko lua, https://github.com/folke/lua-dev.nvim/blob/main/lua/lua-dev/sumneko.lua .
|
||||
-- see also https://github.com/LuaLS/lua-language-server/wiki/Libraries#link-to-workspace .
|
||||
-- Lua-dev.nvim also has similar settings for lua ls, https://github.com/folke/neodev.nvim/blob/main/lua/neodev/luals.lua .
|
||||
library = {
|
||||
fn.stdpath("data") .. "/site/pack/packer/opt/emmylua-nvim",
|
||||
fn.stdpath("config"),
|
||||
|
||||
Reference in New Issue
Block a user