From cc8cf810f58eee7762af364546d57bf56b640380 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Sep 2024 15:55:34 -0400 Subject: [PATCH] tweak(cc): prioritize clangd over ccls lsp-clangd's default priority is -1. Fix: #2689 --- modules/lang/cc/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 70c85b7af..c9dd5409a 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -215,6 +215,7 @@ This is ignored by ccls.") (after! lsp-mode (require 'ccls)) :config (set-evil-initial-state! 'ccls-tree-mode 'emacs) + (set-lsp-priority! 'ccls -2) ; Prioritize clangd over ccls ;; Disable `ccls-sem-highlight-method' if `lsp-enable-semantic-highlighting' ;; is nil. Otherwise, it appears ccls bypasses it. (setq-hook! 'lsp-configure-hook