diff --git a/modules/completion/vertico/config.el b/modules/completion/vertico/config.el index 86ff2b6fb3d..ddad6109217 100644 --- a/modules/completion/vertico/config.el +++ b/modules/completion/vertico/config.el @@ -37,6 +37,12 @@ overrides `completion-styles' during company completion sessions.") (map! :when (modulep! :editor evil +everywhere) :map vertico-map + "M-RET" #'vertico-exit-input + "C-SPC" #'+vertico/embark-preview + "C-j" #'vertico-next + "C-M-j" #'vertico-next-group + "C-k" #'vertico-previous + "C-M-k" #'vertico-previous-group "C-h" (cmds! (eq 'file (vertico--metadata-get 'category)) #'vertico-directory-up) "C-l" (cmds! (eq 'file (vertico--metadata-get 'category)) #'+vertico/enter-or-preview)) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 0027b280ccd..5cd3be6591f 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -206,17 +206,7 @@ (:after helm-occur :map helm-occur-map [C-return] #'helm-occur-run-goto-line-ow) (:after helm-grep :map helm-grep-map - [C-return] #'helm-grep-run-other-window-action)) - - (:when (modulep! :completion vertico) - (:after vertico - :map vertico-map - "M-RET" #'vertico-exit-input - "C-SPC" #'+vertico/embark-preview - "C-j" #'vertico-next - "C-M-j" #'vertico-next-group - "C-k" #'vertico-previous - "C-M-k" #'vertico-previous-group))) + [C-return] #'helm-grep-run-other-window-action))) ;;; :ui