fix(selectrum): Apply changes from minad's review

selectrum-fix-minibuffer-height has been deprecated.

The selectrum-refine-candidates-function should not be set. Only
selectrum-highlight-candidates-function is necessary in order to get
highlighting, when orderless-skip-highlighting is set.

Co-authored-by: minad <mail+gh@daniel-mendler.de>
This commit is contained in:
Edmund Miller 2021-02-21 14:40:26 -06:00 committed by Itai Y. Efrat
parent dfce5ddb17
commit 74b100cd54

View file

@ -5,8 +5,7 @@
:init
(setq selectrum-display-action nil
selectrum-num-candidates-displayed 15
selectrum-extend-current-candidate-highlight t
selectrum-fix-minibuffer-height t)
selectrum-extend-current-candidate-highlight t)
(unless (featurep! +orderless)
(setq completion-styles '(substring partial-completion)))
:config
@ -35,8 +34,7 @@
:config
(setq completion-styles '(orderless))
(setq orderless-skip-highlighting (lambda () selectrum-active-p))
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches
selectrum-refine-candidates-function #'orderless-filter))
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches))
(use-package! consult
:defer t