From 7a54d9fa1529b9fe6bfafe8599fe313502866330 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 9 Jul 2023 12:38:01 +0200 Subject: [PATCH] vim: disable lus_ls telemetry, don't call setup twice --- home/vimrc.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/vimrc.lua b/home/vimrc.lua index c8e8236..7d30dfc 100644 --- a/home/vimrc.lua +++ b/home/vimrc.lua @@ -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 })