From 72f05d140f39a59434918569ff4edaa8b6a45580 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Tue, 9 Jan 2024 07:49:37 -0500 Subject: [PATCH] use clangd --- doom/.config/doom/config.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 7edc845..dff53cf 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -46,9 +46,13 @@ ;; doesn't show in childframe, but might be useful in terminal company-show-quick-access 1)) -(after! ccls - (setq ccls-initialization-options '(:index (:comments 2) :completion (:detailedLabel t))) - (set-lsp-priority! 'ccls 2)) ; optional as ccls is the default in Doom +(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)) ;; pinentry for emacs ssh gpg (use-package! pinentry