Fix blacklisted evil-collection-magit keybinds

Now that evil-magit's been moved to evil-collection, its keybinds are
subject to our blacklist. There must be a better way to exclude
evil-collection modules from the blacklist.
This commit is contained in:
Henrik Lissner 2020-11-29 15:16:55 -05:00
parent 77924c8feb
commit 2828281af7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -204,6 +204,19 @@ ensure it is built when we actually use Forge."
"gi" #'forge-jump-to-issues "gi" #'forge-jump-to-issues
"gm" #'forge-jump-to-pullreqs) "gm" #'forge-jump-to-pullreqs)
;; Fix these keybinds because they are blacklisted
;; REVIEW There must be a better way to exclude particular evil-collection
;; modules from the blacklist.
(map! (:map magit-mode-map
:nv "]" #'magit-section-forward-sibling
:nv "[" #'magit-section-backward-sibling
:nv "gr" #'magit-refresh
:nv "gR" #'magit-refresh-all)
(:map magit-status-mode-map
:nv "gz" #'magit-refresh)
(:map magit-diff-mode-map
:nv "gd" #'magit-jump-to-diffstat-or-diff)))
;; A more intuitive behavior for TAB in magit buffers: ;; A more intuitive behavior for TAB in magit buffers:
(define-key! 'normal (define-key! 'normal
(magit-status-mode-map (magit-status-mode-map