lang/cc: fix sem-highlight disabler
We unset ccls-sem-highlight-method buffer-locally, but lsp-before-initialize-hook only runs once per new LSP server instance, and each server could preside over any number of buffers, so only the first buffer is affected.
This commit is contained in:
parent
963f96b42f
commit
d85c7b857b
1 changed files with 3 additions and 2 deletions
|
@ -285,8 +285,9 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
|
|||
(set-evil-initial-state! 'ccls-tree-mode 'emacs)
|
||||
;; Disable `ccls-sem-highlight-method' if `lsp-enable-semantic-highlighting'
|
||||
;; is nil. Otherwise, it appears ccls bypasses it.
|
||||
(setq-hook! 'lsp-before-initialize-hook
|
||||
ccls-sem-highlight-method (if lsp-enable-semantic-highlighting ccls-sem-highlight-method))
|
||||
(setq-hook! 'lsp-configure-hook
|
||||
ccls-sem-highlight-method (if lsp-enable-semantic-highlighting
|
||||
ccls-sem-highlight-method))
|
||||
(when (or IS-MAC IS-LINUX)
|
||||
(let ((cpu-count-command (cond (IS-MAC '("sysctl" "-n" "hw.ncpu"))
|
||||
(IS-LINUX '("nproc"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue