selectrum: orderless now works

This commit is contained in:
Itai Y. Efrat 2021-04-25 18:32:47 +03:00
parent 93008e1784
commit 1b74d822c3
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,6 @@
** TODO Start-up with recent files ** TODO Start-up with recent files
** TODO Add vanilla keybindings ** TODO Add vanilla keybindings
*** TODO Add keybinding for embark-act *** TODO Add keybinding for embark-act
** TODO ~+orderless~ doesn't work
* PROJ List of things needed for Ivy parity * PROJ List of things needed for Ivy parity
** TODO Icons ** TODO Icons
https://github.com/minad/marginalia/issues/59 https://github.com/minad/marginalia/issues/59

View file

@ -38,7 +38,7 @@
(use-package! orderless (use-package! orderless
:when (featurep! +orderless) :when (featurep! +orderless)
:defer t :after selectrum
:init :init
(setq orderless-component-separator "[ &]" (setq orderless-component-separator "[ &]"
orderless-matching-styles '(orderless-prefixes orderless-matching-styles '(orderless-prefixes
@ -47,6 +47,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-refine-candidates-function #'orderless-filter)
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches) (setq selectrum-highlight-candidates-function #'orderless-highlight-matches)
(setq orderless-matching-styles '(orderless-regexp) (setq orderless-matching-styles '(orderless-regexp)
orderless-style-dispatchers '(flex-if-twiddle orderless-style-dispatchers '(flex-if-twiddle