From a5a9630a4c64e79766c9744d2d60c3562af05168 Mon Sep 17 00:00:00 2001 From: Seb <133339614+Sebagabones@users.noreply.github.com> Date: Tue, 8 Apr 2025 19:17:10 +0800 Subject: [PATCH] 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](https://github.com/doomemacs/doomemacs/blob/c75e1b915bf7de28ae057aaa7b74221ec943bd74/modules/lang/cc/README.org#lsp-mode-with-ccls) --- lsp-mode.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lsp-mode.md b/lsp-mode.md index b74c595..c870c9b 100644 --- a/lsp-mode.md +++ b/lsp-mode.md @@ -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