docs: change link format

This commit is contained in:
TEC 2022-09-26 02:19:42 +08:00 committed by Henrik Lissner
parent 58fb83c98e
commit 5ac2a5258b
160 changed files with 1161 additions and 1152 deletions

View file

@ -14,8 +14,8 @@ Supports Git, Svn, Hg, and Bzr.
** 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
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.
@ -26,20 +26,20 @@ Supports Git, Svn, Hg, and Bzr.
diff-hl's faces (like modus-themes does).
** Packages
- [[doom-package:][git-gutter-fringe]] unless [[doom-module:][+diff-hl]]
- [[doom-package:][diff-hl]] if [[doom-module:][+diff-hl]]
- [[doom-package:git-gutter-fringe]] unless [[doom-module:+diff-hl]]
- [[doom-package:diff-hl]] if [[doom-module:+diff-hl]]
** Hacks
- The VC gutter will be updated when pressing ESC, leaving insert mode (evil
users), or refocusing the frame or window where it is active.
- If [[doom-module:][+pretty]] is enabled
- If [[doom-module:+pretty]] is enabled
- The fringes that both git-gutter-fringe and diff-hl define will be replaced
with a set of thin bars. This achieves a slicker look closer to git-gutter's
appearance in VSCode or Sublime Text, but may look weird for themes that
swap their faces' :foreground and :background (like modus-themes).
- The fringes are moved to the outside of the margins (closest to the frame
edge), so they have some breathing space away from the buffer's contents.
- If [[doom-package:][+diff-hl]] is enabled:
- If [[doom-package:+diff-hl]] is enabled:
- ~diff-hl-revert-hunk~ displays a preview popup of the hunk being reverted.
It takes up ~50% of the frame, by default, whether you're reverting 2 lines
or 20. Since this isn't easily customized, it has been advised to shrink