home: vim: add 'clangd' LSP configuration
This commit is contained in:
parent
ae94693540
commit
336d86d2d8
|
@ -2,6 +2,13 @@ lua << EOF
|
|||
local lsp = require("lspconfig")
|
||||
local utils = require("ambroisie.utils")
|
||||
|
||||
-- C/C++
|
||||
if utils.is_executable("clangd") then
|
||||
lsp.clangd.setup({
|
||||
on_attach = utils.on_attach,
|
||||
})
|
||||
end
|
||||
|
||||
-- Python
|
||||
if utils.is_executable("pyright") then
|
||||
lsp.pyright.setup({
|
||||
|
|
Loading…
Reference in a new issue