fix: removed deprecated lua ls

This commit is contained in:
Patrick Großmann 2023-03-06 17:33:05 +09:00
parent 4df7e8f144
commit 444fb0411c
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -108,27 +108,7 @@ cmp.setup.cmdline(':', {
{ name = 'cmdline' }
}
})
-- language servers
local sumneko_root_path = vim.fn.stdpath("data").."/lua-language-server"
local sumneko_binary = sumneko_root_path.."/bin/lua-language-server"
require("lspconfig").sumneko_lua.setup { -- lua: https://github.com/sumneko/lua-language-server
cmd = { sumneko_binary, "-E", sumneko_root_path .. "/main.lua" },
settings = {
Lua = {
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {'vim'},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = { enable = false, },
},
},
}
require('lspconfig').clangd.setup {} --needs clang
require('lspconfig').rust_analyzer.setup {} --still needs rust analyzer installed