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: