Doom no longer ships ccls as the default LSP, see [here]{https://github.com/doomemacs/doomemacs/issues/2689#issuecomment-2339183572) - I have simply added in the updated instructions from [here](c75e1b915b/modules/lang/cc/README.org (lsp-mode-with-ccls))

Seb 2025-04-08 19:17:10 +08:00
parent 761a47702a
commit a5a9630a4c

@ -9,6 +9,14 @@
Set `(cc +lsp)` in your `~/.config/doom/init.el`
In your `~/.config/doom/config.el` add the following:
```elisp
;;; add to $DOOMDIR/config.el
(after! ccls
(setq ccls-initialization-options '(:index (:comments 2) :completion (:detailedLabel t)))
(set-lsp-priority! 'ccls 1))
```
#### spacemacs
set `c-c++-backend` to `lsp-ccls` in the `+lang/c-c++` layer