Configure clangd as LSP server
This commit is contained in:
parent
19ad6fcf10
commit
7d4debaede
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue