vim: disable lus_ls telemetry, don't call setup twice
This commit is contained in:
parent
020fcdc0ab
commit
7a54d9fa15
@ -184,7 +184,7 @@ cmp.setup({
|
||||
}
|
||||
})
|
||||
|
||||
local servers = { 'pyright', 'rust_analyzer', 'ccls', 'lua_ls', 'nixd', 'texlab', 'verible' }
|
||||
local servers = { 'pyright', 'rust_analyzer', 'ccls', 'nixd', 'texlab' }
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
@ -193,6 +193,7 @@ for _, lsp in pairs(servers) do
|
||||
end
|
||||
|
||||
require('lspconfig').lua_ls.setup({
|
||||
capabilities = capabilities,
|
||||
single_file_support = true,
|
||||
settings = {
|
||||
Lua = {
|
||||
@ -209,11 +210,15 @@ require('lspconfig').lua_ls.setup({
|
||||
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
|
||||
},
|
||||
},
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
require('lspconfig').verible.setup({
|
||||
capabilities = capabilities,
|
||||
root_dir = function() return vim.loop.cwd() end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user