[keyboard-layout] replace `evil-magit` by `evil-collection-magit`

`evil-magit` is part of `evil-collection-magit` now
This commit is contained in:
Lucius Hu 2021-04-28 02:14:00 +00:00 committed by GitHub
parent eeee3a1fa0
commit 982e2515a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -30,11 +30,11 @@
ediff
elfeed
evil
evil-collection
evil-cleverparens
evil-escape
evil-evilified-state
evil-lisp-state
evil-magit
evil-surround
eyebrowse
flycheck
@ -290,22 +290,22 @@
"K"
"L")))
(defun keyboard-layout/pre-init-evil-magit ()
(kl|config evil-magit
(defun keyboard-layout/pre-init-evil-collection ()
(kl|config evil-collection-magit
:description
"Remap `evil-magit' bindings."
"Remap `evil-collection-magit' bindings."
:loader
(with-eval-after-load 'evil-magit BODY)
(with-eval-after-load 'evil-collection-magit BODY)
:common
(dolist (state (if evil-magit-use-y-for-yank
(list evil-magit-state 'visual)
(list evil-magit-state)))
(dolist (state (if evil-collection-magit-use-y-for-yank
(list evil-collection-magit-state 'visual)
(list evil-collection-magit-state)))
(kl/evil-correct-keys state magit-mode-map
"j"
"k"
"C-j"
"C-k"))
(kl/evil-correct-keys 'normal evil-magit-toggle-text-minor-mode-map
(kl/evil-correct-keys 'normal evil-collection-magit-toggle-text-minor-mode-map
"C-j")))
(defun keyboard-layout/pre-init-evil-surround ()