Skip to content

Commit

Permalink
vlf: fix keybindings
Browse files Browse the repository at this point in the history
Confusingly, vlf-mode-map and vlf-prefix-map are the opposite of what
they sound like, so to apply those keybindings without a prefix, they
need to go in vlf-prefix-map.

evil-normalize-keymaps seems to also be needed for the keybindings to
work.
  • Loading branch information
AjaiKN authored and condy0919 committed Nov 16, 2024
1 parent 5a1315b commit 4f17947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modes/vlf/evil-collection-vlf.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"Set up `evil' bindings for `vlf'."
(evil-set-initial-state 'vlf-mode 'normal)

(evil-collection-define-key 'normal 'vlf-mode-map
(add-hook 'vlf-mode-hook #'evil-normalize-keymaps)

(evil-collection-define-key 'normal 'vlf-prefix-map
"gj" 'vlf-next-batch
"gk" 'vlf-prev-batch
(kbd "C-j") 'vlf-next-batch
Expand Down

0 comments on commit 4f17947

Please sign in to comment.