home: vim: add 'clangd' LSP configuration

This commit is contained in:
Bruno BELANYI 2022-03-01 15:23:42 +01:00
parent 7a9760b0cd
commit af56bc76cf

View file

@ -2,6 +2,13 @@ lua << EOF
local lsp = require("lspconfig") local lsp = require("lspconfig")
local utils = require("ambroisie.utils") local utils = require("ambroisie.utils")
-- C/C++
if utils.is_executable("clangd") then
lsp.clangd.setup({
on_attach = utils.on_attach,
})
end
-- Python -- Python
if utils.is_executable("pyright") then if utils.is_executable("pyright") then
lsp.pyright.setup({ lsp.pyright.setup({