Skip to content

Commit

Permalink
refactor(vertico): take evil keybinds from :config default
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Mar 22, 2023
1 parent bab4c92 commit 4e105a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 6 additions & 0 deletions modules/completion/vertico/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
12 changes: 1 addition & 11 deletions modules/config/default/+evil-bindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e105a9

Please sign in to comment.