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:
Henrik Lissner 2022-08-08 17:46:31 +02:00
parent cd9bc5a1fd
commit 27a448b04b
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
10 changed files with 137 additions and 89 deletions

View file

@ -13,6 +13,10 @@ Supports Git, Svn, Hg, and Bzr.
[[doom-contrib-maintainer:][Become a maintainer?]]
** Module flags
- +diff-hl ::
Use [[doom-package:][diff-hl]] instead of git-gutter to power the VC gutter. It is a little
faster, but is slightly more prone to visual glitching. [[doom-package:][diff-hl]] is intended to
replace git-gutter at some point in the future.
- +pretty ::
Apply some stylistic defaults to the fringe, enabling thin bars in the fringe.
This look takes after the modern look of git-gutter in VSCode and Sublime
@ -22,7 +26,8 @@ Supports Git, Svn, Hg, and Bzr.
diff-hl's faces (like modus-themes does).
** Packages
- [[doom-package:][git-gutter-fringe]]
- [[doom-package:][git-gutter-fringe]] unless [[doom-module:][+diff-hl]]
- [[doom-package:][diff-hl]] if [[doom-module:][+diff-hl]]
** TODO Hacks
#+begin_quote