[git] Disable evil-surround-mode in all magit modes

This is an extension of #15462.  I noticed that the fix did not apply
to magit-diff buffers, which still had the issue of `s' not being
available to stage diff hunks.  `magit-diff-mode' is the parent mode
of all magit modes, in which evil-surround is not useful, so disabling
there makes the most sense.
This commit is contained in:
Aaron L. Zeng 2022-06-20 23:12:45 -04:00 committed by Maxi Wolff
parent 48a8599cbe
commit 4eaff25268
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
(defun git/post-init-evil-surround ()
(spacemacs|use-package-add-hook magit
:post-config
(add-hook 'magit-status-mode-hook #'turn-off-evil-surround-mode)))
(add-hook 'magit-mode-hook #'turn-off-evil-surround-mode)))
(defun git/pre-init-evil-collection ()
(when (spacemacs//support-evilified-buffer-p)