Configure clangd as LSP server

This commit is contained in:
coolneng 2021-10-20 10:42:07 +02:00
parent 19ad6fcf10
commit 7d4debaede
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 8 additions and 0 deletions

View File

@ -61,3 +61,11 @@
(map! :map poly-markdown+R-mode-map (map! :map poly-markdown+R-mode-map
:n "RET" #'polymode-eval-chunk :n "RET" #'polymode-eval-chunk
:desc "Evaluate code block") :desc "Evaluate code block")
;; Set clangd as C/C++ LSP
(setq lsp-clients-clangd-args '("-j=3"
"--background-index"
"--clang-tidy"
"--completion-style=detailed"
"--header-insertion=never"
"--header-insertion-decorators=0"))
(after! lsp-clangd (set-lsp-priority! 'clangd 2))