fix: removed deprecated lua ls
This commit is contained in:
parent
4df7e8f144
commit
444fb0411c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue