From 3fc0201dfac75addfd97ef12a00b3af2c28195c5 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 8 Mar 2022 20:18:02 +0100 Subject: [PATCH] home: vim: lspconfig: use actual 'lspconfig' name --- home/vim/plugin/settings/lspconfig.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/vim/plugin/settings/lspconfig.vim b/home/vim/plugin/settings/lspconfig.vim index 5d1b135..fe04135 100644 --- a/home/vim/plugin/settings/lspconfig.vim +++ b/home/vim/plugin/settings/lspconfig.vim @@ -1,5 +1,5 @@ lua << EOF -local lsp = require("lspconfig") +local lspconfig = require("lspconfig") local utils = require("ambroisie.utils") -- Inform servers we are able to do completion, snippets, etc... @@ -8,7 +8,7 @@ capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities) -- C/C++ if utils.is_executable("clangd") then - lsp.clangd.setup({ + lspconfig.clangd.setup({ capabilities = capabilities, on_attach = utils.on_attach, }) @@ -16,7 +16,7 @@ end -- Nix if utils.is_executable("rnix-lsp") then - lsp.rnix.setup({ + lspconfig.rnix.setup({ capabilities = capabilities, on_attach = utils.on_attach, }) @@ -24,7 +24,7 @@ end -- Python if utils.is_executable("pyright") then - lsp.pyright.setup({ + lspconfig.pyright.setup({ capabilities = capabilities, on_attach = utils.on_attach, }) @@ -32,7 +32,7 @@ end -- Rust if utils.is_executable("rust-analyzer") then - lsp.rust_analyzer.setup({ + lspconfig.rust_analyzer.setup({ capabilities = capabilities, on_attach = utils.on_attach, })