diff --git a/config.el b/config.el index c4706e4..ddc6c2f 100644 --- a/config.el +++ b/config.el @@ -61,3 +61,11 @@ (map! :map poly-markdown+R-mode-map :n "RET" #'polymode-eval-chunk :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))