From 7d4debaede85184a3d9bea7407d2c0b1e7e82740 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 20 Oct 2021 10:42:07 +0200 Subject: [PATCH] Configure clangd as LSP server --- config.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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))