aboutsummaryrefslogtreecommitdiff
path: root/.config/doom/config.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-05-25 09:02:44 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-05-25 09:02:44 +0200
commit081016d4b07b6a3577bff8acf8b4ee4d031ee580 (patch)
tree72bb2d3d02111bcc234ca8ea7838dc9398b9e731 /.config/doom/config.el
parent5279b903898840fa485174b4599d888870cb425c (diff)
downloaddotfiles-081016d4b07b6a3577bff8acf8b4ee4d031ee580.tar.gz
dotfiles-081016d4b07b6a3577bff8acf8b4ee4d031ee580.zip
doom: trying lsp for cc, ruby and rust
This used to be a pain in the past. Let's see how it performs nowadays... Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.config/doom/config.el')
-rw-r--r--.config/doom/config.el13
1 files changed, 13 insertions, 0 deletions
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! "<f9>" #'langtool-check-buffer)
(map! "M-<f9>" #'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.