selectrum: improve company advice
- try `basic` and `partial-completion` completion styles before `orderless`, since `company-mode` is usually used in in-buffer completions where these often give much more relevant results than orderless, which can still be accessed by `&`.
This commit is contained in:
parent
d86375a468
commit
814c5b5c0c
2 changed files with 4 additions and 4 deletions
|
@ -2,10 +2,11 @@
|
|||
|
||||
;;;###autoload
|
||||
(defadvice! +selectrum--company-capf--candidates-a (fn &rest args)
|
||||
"Function to help company to highlight all candidates with just
|
||||
one face."
|
||||
"Highlight company matches correctly, and try default completion styles before
|
||||
orderless."
|
||||
:around 'company-capf--candidates
|
||||
(let ((orderless-match-faces [completions-common-part]))
|
||||
(let ((orderless-match-faces [completions-common-part])
|
||||
(completion-styles '(basic partial-completion orderless)))
|
||||
(apply fn args)))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue