Skip to content

Commit

Permalink
docs: Add information about configuring delta pager
Browse files Browse the repository at this point in the history
docs: Add information about configuring delta pager

docs: only mention pager, not diff
  • Loading branch information
JonathanLorimer authored and martinvonz committed Apr 29, 2024
1 parent af95c78 commit e54e83b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e54e83b

Please sign in to comment.