Add website docs for the hunk_style variants (#26937)
Follow up to https://github.com/zed-industries/zed/pull/26816 Release Notes: - N/A
This commit is contained in:
parent
65994c0576
commit
ddc210abfc
1 changed files with 38 additions and 1 deletions
|
@ -1348,7 +1348,8 @@ To interpret all `.c` files as C++, files called `MyLockFile` as TOML and files
|
|||
"git_gutter": "tracked_files",
|
||||
"inline_blame": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"hunk_style": "staged_hollow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -1397,6 +1398,42 @@ To interpret all `.c` files as C++, files called `MyLockFile` as TOML and files
|
|||
}
|
||||
```
|
||||
|
||||
### Hunk Style
|
||||
|
||||
- Description: What styling we should use for the diff hunks.
|
||||
- Setting: `hunk_style`
|
||||
- Default:
|
||||
|
||||
```json
|
||||
{
|
||||
"git": {
|
||||
"hunk_style": "staged_hollow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Options**
|
||||
|
||||
1. Show the staged hunks faded out and with a border:
|
||||
|
||||
```json
|
||||
{
|
||||
"git": {
|
||||
"hunk_style": "staged_hollow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
2. Show unstaged hunks faded out and with a border:
|
||||
|
||||
```json
|
||||
{
|
||||
"git": {
|
||||
"hunk_style": "unstaged_hollow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Options**
|
||||
|
||||
1. Disable inline git blame:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue