home: vim: lspconfig: use actual 'lspconfig' name
This commit is contained in:
parent
d5527912a3
commit
3fc0201dfa
|
@ -1,5 +1,5 @@
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local lsp = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
local utils = require("ambroisie.utils")
|
local utils = require("ambroisie.utils")
|
||||||
|
|
||||||
-- Inform servers we are able to do completion, snippets, etc...
|
-- Inform servers we are able to do completion, snippets, etc...
|
||||||
|
@ -8,7 +8,7 @@ capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
|
||||||
|
|
||||||
-- C/C++
|
-- C/C++
|
||||||
if utils.is_executable("clangd") then
|
if utils.is_executable("clangd") then
|
||||||
lsp.clangd.setup({
|
lspconfig.clangd.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = utils.on_attach,
|
on_attach = utils.on_attach,
|
||||||
})
|
})
|
||||||
|
@ -16,7 +16,7 @@ end
|
||||||
|
|
||||||
-- Nix
|
-- Nix
|
||||||
if utils.is_executable("rnix-lsp") then
|
if utils.is_executable("rnix-lsp") then
|
||||||
lsp.rnix.setup({
|
lspconfig.rnix.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = utils.on_attach,
|
on_attach = utils.on_attach,
|
||||||
})
|
})
|
||||||
|
@ -24,7 +24,7 @@ end
|
||||||
|
|
||||||
-- Python
|
-- Python
|
||||||
if utils.is_executable("pyright") then
|
if utils.is_executable("pyright") then
|
||||||
lsp.pyright.setup({
|
lspconfig.pyright.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = utils.on_attach,
|
on_attach = utils.on_attach,
|
||||||
})
|
})
|
||||||
|
@ -32,7 +32,7 @@ end
|
||||||
|
|
||||||
-- Rust
|
-- Rust
|
||||||
if utils.is_executable("rust-analyzer") then
|
if utils.is_executable("rust-analyzer") then
|
||||||
lsp.rust_analyzer.setup({
|
lspconfig.rust_analyzer.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = utils.on_attach,
|
on_attach = utils.on_attach,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue