feat(vc-gutter): add +diff-hl backend
This adds an alternative backend to the :ui vc-gutter module, enabled with the +diff-hl flag. In the future, I intend for diff-hl to replace git-gutter, as it is slightly faster and depends on more native functionality (vc.el), but it's still a little buggy. It will remain opt-in until those issues are sorted out.
This commit is contained in:
parent
cd9bc5a1fd
commit
27a448b04b
10 changed files with 137 additions and 89 deletions
|
@ -72,11 +72,12 @@ Fixes #3939: unsortable dired entries on Windows."
|
|||
|
||||
|
||||
(use-package! diff-hl
|
||||
:hook (dired-mode . diff-hl-dired-mode-unless-remote)
|
||||
:hook (magit-post-refresh . diff-hl-magit-post-refresh)
|
||||
:config
|
||||
;; use margin instead of fringe
|
||||
(diff-hl-margin-mode))
|
||||
:when (featurep! :ui vc-gutter)
|
||||
:hook (dired-mode-hook . diff-hl-margin-local-mode)
|
||||
:init
|
||||
(unless (featurep! :ui vc-gutter +diff-hl)
|
||||
(add-hook 'dired-mode-hook #'diff-hl-dired-mode-unless-remote)
|
||||
(add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh)))
|
||||
|
||||
|
||||
(use-package! ranger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue