tweak(cc): prioritize clangd over ccls

lsp-clangd's default priority is -1.

Fix: #2689
This commit is contained in:
Henrik Lissner 2024-09-09 15:55:34 -04:00
parent 1a33838423
commit cc8cf810f5
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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