vim: disable lus_ls telemetry, don't call setup twice

This commit is contained in:
Asmir A 2023-07-09 12:38:01 +02:00
parent 020fcdc0ab
commit 7a54d9fa15

View File

@ -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() local capabilities = require('cmp_nvim_lsp').default_capabilities()
for _, lsp in pairs(servers) do for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup { require('lspconfig')[lsp].setup {
@ -193,6 +193,7 @@ for _, lsp in pairs(servers) do
end end
require('lspconfig').lua_ls.setup({ require('lspconfig').lua_ls.setup({
capabilities = capabilities,
single_file_support = true, single_file_support = true,
settings = { settings = {
Lua = { Lua = {
@ -209,11 +210,15 @@ require('lspconfig').lua_ls.setup({
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true, [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
}, },
}, },
telemetry = {
enable = false,
},
}, },
}, },
}) })
require('lspconfig').verible.setup({ require('lspconfig').verible.setup({
capabilities = capabilities,
root_dir = function() return vim.loop.cwd() end root_dir = function() return vim.loop.cwd() end
}) })