fix(corfu): move orderless conf out of corfu block
This commit is contained in:
parent
bb7a8e3866
commit
dd65e57a3a
1 changed files with 3 additions and 4 deletions
|
@ -17,6 +17,9 @@
|
||||||
(when (where-is-internal #'completion-at-point (list (current-local-map)))
|
(when (where-is-internal #'completion-at-point (list (current-local-map)))
|
||||||
(setq-local corfu-echo-delay nil)
|
(setq-local corfu-echo-delay nil)
|
||||||
(corfu-mode +1))))
|
(corfu-mode +1))))
|
||||||
|
(when (modulep! +orderless)
|
||||||
|
(after! orderless
|
||||||
|
(setq orderless-component-separator #'orderless-escapable-split-on-space)))
|
||||||
:config
|
:config
|
||||||
(setq corfu-auto t
|
(setq corfu-auto t
|
||||||
corfu-auto-delay 0.1
|
corfu-auto-delay 0.1
|
||||||
|
@ -50,10 +53,6 @@
|
||||||
(when (modulep! +icons)
|
(when (modulep! +icons)
|
||||||
(add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))
|
(add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))
|
||||||
|
|
||||||
(when (modulep! +orderless)
|
|
||||||
(after! orderless
|
|
||||||
(setq orderless-component-separator #'orderless-escapable-split-on-space)))
|
|
||||||
|
|
||||||
;; If you want to update the visual hints after completing minibuffer commands
|
;; If you want to update the visual hints after completing minibuffer commands
|
||||||
;; with Corfu and exiting, you have to do it manually.
|
;; with Corfu and exiting, you have to do it manually.
|
||||||
(defadvice! +corfu--insert-before-exit-minibuffer-a ()
|
(defadvice! +corfu--insert-before-exit-minibuffer-a ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue