mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
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:
11
modules/ui/vc-gutter/autoload/diff-hl.el
Normal file
11
modules/ui/vc-gutter/autoload/diff-hl.el
Normal file
@@ -0,0 +1,11 @@
|
||||
;;; ui/vc-gutter/autoload/diff-hl.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +diff-hl)
|
||||
|
||||
;;;###autoload
|
||||
(defalias '+vc-gutter/stage-hunk #'diff-hl-stage-current-hunk)
|
||||
;;;###autoload
|
||||
(defalias '+vc-gutter/revert-hunk #'diff-hl-revert-hunk)
|
||||
;;;###autoload
|
||||
(defalias '+vc-gutter/next-hunk #'diff-hl-next-hunk)
|
||||
;;;###autoload
|
||||
(defalias '+vc-gutter/previous-hunk #'diff-hl-previous-hunk)
|
Reference in New Issue
Block a user