mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
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:
committed by
Itai Y. Efrat
parent
dfce5ddb17
commit
74b100cd54
@ -5,8 +5,7 @@
|
|||||||
:init
|
:init
|
||||||
(setq selectrum-display-action nil
|
(setq selectrum-display-action nil
|
||||||
selectrum-num-candidates-displayed 15
|
selectrum-num-candidates-displayed 15
|
||||||
selectrum-extend-current-candidate-highlight t
|
selectrum-extend-current-candidate-highlight t)
|
||||||
selectrum-fix-minibuffer-height t)
|
|
||||||
(unless (featurep! +orderless)
|
(unless (featurep! +orderless)
|
||||||
(setq completion-styles '(substring partial-completion)))
|
(setq completion-styles '(substring partial-completion)))
|
||||||
:config
|
:config
|
||||||
@ -35,8 +34,7 @@
|
|||||||
:config
|
:config
|
||||||
(setq completion-styles '(orderless))
|
(setq completion-styles '(orderless))
|
||||||
(setq orderless-skip-highlighting (lambda () selectrum-active-p))
|
(setq orderless-skip-highlighting (lambda () selectrum-active-p))
|
||||||
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches
|
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches))
|
||||||
selectrum-refine-candidates-function #'orderless-filter))
|
|
||||||
|
|
||||||
(use-package! consult
|
(use-package! consult
|
||||||
:defer t
|
:defer t
|
||||||
|
Reference in New Issue
Block a user