mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
No auto-highlight during lsp
This commit is contained in:
parent
5c781ceeaf
commit
2ab611139c
1 changed files with 12 additions and 0 deletions
|
|
@ -49,11 +49,23 @@
|
|||
* c++
|
||||
#+begin_src emacs-lisp
|
||||
(use-package lsp-mode
|
||||
:custom
|
||||
(lsp-completion-provider :none) ;; we use Corfu!
|
||||
:init
|
||||
(defun my/lsp-mode-setup-completion ()
|
||||
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
||||
'(flex))) ;; Configure flex
|
||||
:hook
|
||||
(lsp-completion-mode . my/lsp-mode-setup-completion)
|
||||
:config
|
||||
(with-eval-after-load 'lsp-clangd
|
||||
(add-to-list 'lsp-clients-clangd-args
|
||||
"-j=16"))
|
||||
|
||||
(add-hook 'lsp-mode-hook
|
||||
(lambda ()
|
||||
(auto-highlight-symbol-mode -1)))
|
||||
|
||||
;; (setq lsp-disabled-clients nil)
|
||||
|
||||
;; (add-to-list 'lsp-disabled-clients '(c++-mode . ccls))
|
||||
|
|
|
|||
Loading…
Reference in a new issue