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