docs: Document inline blame options (#20006)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-10-31 09:36:05 +01:00 committed by GitHub
parent 383e868af0
commit 10226a3992
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 0 deletions

View file

@ -652,6 +652,12 @@
// Sets a delay after which the inline blame information is shown.
// Delay is restarted with every cursor movement.
// "delay_ms": 600
//
// Whether or not do display the git commit summary on the same line.
// "show_commit_summary": false
//
// The minimum column number to show the inline blame information at
// "min_column": 0
}
},
// Configuration for how direnv configuration should be loaded. May take 2 values:

View file

@ -1043,6 +1043,32 @@ To interpret all `.c` files as C++, files called `MyLockFile` as TOML and files
}
```
3. Show a commit summary next to the commit date and author:
```json
{
"git": {
"inline_blame": {
"enabled": true,
"show_commit_summary": true
}
}
}
```
4. Use this as the minimum column at which to display inline blame information:
```json
{
"git": {
"inline_blame": {
"enabled": true,
"min_column": 80
}
}
}
```
## Indent Guides
- Description: Configuration related to indent guides. Indent guides can be configured separately for each language.