Slightly better result sorting in company.

This commit is contained in:
Tom Alexander 2023-10-15 16:01:33 -04:00
parent c652e60619
commit eae6737d76
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 8 additions and 7 deletions

View File

@ -10,13 +10,13 @@
;; C-M-.
([remap xref-find-apropos] . #'consult-eglot-symbols)
)
:hook (
(eglot-managed-mode . (lambda ()
(when (eglot-managed-p)
(corfu-mode +1)
)
))
)
;; :hook (
;; (eglot-managed-mode . (lambda ()
;; (when (eglot-managed-p)
;; (corfu-mode +1)
;; )
;; ))
;; )
:config
(fset #'jsonrpc--log-event #'ignore) ;; Disable logging LSP traffic for performance boost
(set-face-attribute 'eglot-highlight-symbol-face nil :background "#0291a1" :foreground "black")
@ -38,6 +38,7 @@
:hook (eglot-managed-mode . company-mode)
:config
(setq company-backends '((company-capf)))
(setq company-transformers '(company-sort-by-occurrence))
)
;; (use-package company-box