Skip to content

Commit

Permalink
Fix smerge (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
jojojames committed Nov 23, 2024
1 parent 8149fd1 commit 20ee5f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions evil-collection.el
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ See `evil-collection-init' and `evil-collection--modes-with-delayed-setup'."
simple-mpc
slime
sly
smerge-mode
snake
so-long
speedbar
Expand Down
5 changes: 4 additions & 1 deletion modes/smerge-mode/evil-collection-smerge-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,21 @@
;;;###autoload
(defun evil-collection-smerge-mode-setup ()
"Setup up `evil' bindings for `smerge-mode'."
(add-hook 'smerge-mode-hook #'evil-normalize-keymaps)
(evil-collection-define-key 'normal 'smerge-mode-map
"gj" 'smerge-next
"]]" 'smerge-next
"gk" 'smerge-prev
"[[" 'smerge-prev
"gr" 'smerge-resolve
"ga" 'smerge-keep-all
"gu" 'smerge-keep-upper
"gl" 'smerge-keep-lower
"go" 'smerge-keep-other
"gm" 'smerge-keep-mine
"gc" 'smerge-combine-with-next
"gr" 'smerge-refine
"gR" 'smerge-refine
"gb" 'smerge-keep-base))

(provide 'evil-collection-smerge-mode)
;;; evil-collection-smerge-mode.el ends here

0 comments on commit 20ee5f1

Please sign in to comment.