fix(corfu): move orderless config earlier
This commit is contained in:
parent
a16e544c7a
commit
46ce67aa6d
1 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,10 @@ major mode regardless of size.")
|
||||||
:hook (doom-first-buffer . global-corfu-mode)
|
:hook (doom-first-buffer . global-corfu-mode)
|
||||||
:hook (org-mode . corfu-mode)
|
:hook (org-mode . corfu-mode)
|
||||||
:init
|
:init
|
||||||
|
(when (modulep! +orderless)
|
||||||
|
(after! orderless
|
||||||
|
(setq orderless-component-separator #'orderless-escapable-split-on-space)))
|
||||||
|
|
||||||
;; Auto-completion settings, must be set before calling `global-corfu-mode'.
|
;; Auto-completion settings, must be set before calling `global-corfu-mode'.
|
||||||
;; Due to lazy-loading, overriding these in config.el works too.
|
;; Due to lazy-loading, overriding these in config.el works too.
|
||||||
(setq corfu-auto t
|
(setq corfu-auto t
|
||||||
|
@ -80,10 +84,6 @@ major mode regardless of size.")
|
||||||
;; Allow completion after `:' in Lispy.
|
;; Allow completion after `:' in Lispy.
|
||||||
(add-to-list 'corfu-auto-commands #'lispy-colon)
|
(add-to-list 'corfu-auto-commands #'lispy-colon)
|
||||||
|
|
||||||
(when (modulep! +orderless)
|
|
||||||
(after! orderless
|
|
||||||
(setq orderless-component-separator #'orderless-escapable-split-on-space)))
|
|
||||||
|
|
||||||
(add-hook! 'evil-insert-state-exit-hook
|
(add-hook! 'evil-insert-state-exit-hook
|
||||||
(defun +corfu-quit-on-evil-insert-state-exit-h ()
|
(defun +corfu-quit-on-evil-insert-state-exit-h ()
|
||||||
;; This predicate a workaround for unexpected calls to `corfu-quit' in
|
;; This predicate a workaround for unexpected calls to `corfu-quit' in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue