From 081016d4b07b6a3577bff8acf8b4ee4d031ee580 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 25 May 2024 09:02:44 +0200 Subject: doom: trying lsp for cc, ruby and rust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This used to be a pain in the past. Let's see how it performs nowadays... Signed-off-by: Miquel Sabaté Solà --- .config/doom/config.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.config/doom/config.el') diff --git a/.config/doom/config.el b/.config/doom/config.el index b07089c..429677b 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -155,6 +155,19 @@ (map! "" #'langtool-check-buffer) (map! "M-" #'langtool-correct-buffer)) +;;; Programming languages. + +;; Flags to be passed to `clangd' for LSP integration. +(after! lsp-clangd + (setq lsp-clients-clangd-args + '("-j=3" + "--background-index" + "--clang-tidy" + "--completion-style=detailed" + "--header-insertion=never" + "--header-insertion-decorators=0")) + (set-lsp-priority! 'clangd 2)) + ;;; Organization ;; Setting this variable before org-mode loads. -- cgit v1.2.3