From e54e83b0f5c4a5b7d80894c713ae402a5bb280d0 Mon Sep 17 00:00:00 2001 From: Jonathan Lorimer Date: Sun, 28 Apr 2024 20:43:57 -0400 Subject: [PATCH] docs: Add information about configuring delta pager docs: Add information about configuring delta pager docs: only mention pager, not diff --- docs/config.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/config.md b/docs/config.md index 8dd600a576..b3a1629484 100644 --- a/docs/config.md +++ b/docs/config.md @@ -386,6 +386,18 @@ command will be executed directly. For example: ui.pager = ["sh", "-c", "diff-so-fancy | less -RFX"] ``` +Some formatters (like [`delta`](https://github.com/dandavison/delta)) require +git style diffs for formatting. You can configure this style of +diff as the default with the `ui.diff` setting. For example: + +```toml +[ui] +pager = "delta" + +[ui.diff] +format = "git" +``` + ## Aliases You can define aliases for commands, including their arguments. For example: