home: vim: lspconfig: use actual 'lspconfig' name

This commit is contained in:
Bruno BELANYI 2022-03-08 20:18:02 +01:00
parent 0db2c0a13c
commit fc35502141

View file

@ -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,
})