refactor(vc-gutter): use local modes instead of global

This commit is contained in:
Henrik Lissner 2022-08-09 14:57:00 +02:00
parent b06fd63dcb
commit 15b00b78fe
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -143,7 +143,8 @@ is deferred until the file is saved. Respects `git-gutter:disabled-modes'."
(use-package! diff-hl
:when (featurep! +diff-hl)
:hook (doom-first-file . global-diff-hl-mode)
:hook (find-file . diff-hl-mode)
:hook (vc-dir-mode . diff-hl-dir-mode)
:hook (diff-hl-mode . diff-hl-flydiff-mode)
:config
(set-popup-rule! "^\\*diff-hl" :select nil :size '+popup-shrink-to-fit)