Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Properly nest the docs for the inline git blame settings (#31739)

Alejandro Fernández Gómeze0fa3032ecea
diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md
index 6688f4004bb..9f988869b28 100644
--- a/docs/src/configuring-zed.md
+++ b/docs/src/configuring-zed.md
@@ -1753,91 +1753,91 @@ Example:
}
```
-### Hunk Style
+**Options**
-- Description: What styling we should use for the diff hunks.
-- Setting: `hunk_style`
-- Default:
+1. Disable inline git blame:
```json
{
"git": {
- "hunk_style": "staged_hollow"
+ "inline_blame": {
+ "enabled": false
+ }
}
}
```
-**Options**
-
-1. Show the staged hunks faded out and with a border:
+2. Only show inline git blame after a delay (that starts after cursor stops moving):
```json
{
"git": {
- "hunk_style": "staged_hollow"
+ "inline_blame": {
+ "enabled": true,
+ "delay_ms": 500
+ }
}
}
```
-2. Show unstaged hunks faded out and with a border:
+3. Show a commit summary next to the commit date and author:
```json
{
"git": {
- "hunk_style": "unstaged_hollow"
+ "inline_blame": {
+ "enabled": true,
+ "show_commit_summary": true
+ }
}
}
```
-**Options**
-
-1. Disable inline git blame:
+4. Use this as the minimum column at which to display inline blame information:
```json
{
"git": {
"inline_blame": {
- "enabled": false
+ "enabled": true,
+ "min_column": 80
}
}
}
```
-2. Only show inline git blame after a delay (that starts after cursor stops moving):
+### Hunk Style
+
+- Description: What styling we should use for the diff hunks.
+- Setting: `hunk_style`
+- Default:
```json
{
"git": {
- "inline_blame": {
- "enabled": true,
- "delay_ms": 500
- }
+ "hunk_style": "staged_hollow"
}
}
```
-3. Show a commit summary next to the commit date and author:
+**Options**
+
+1. Show the staged hunks faded out and with a border:
```json
{
"git": {
- "inline_blame": {
- "enabled": true,
- "show_commit_summary": true
- }
+ "hunk_style": "staged_hollow"
}
}
```
-4. Use this as the minimum column at which to display inline blame information:
+2. Show unstaged hunks faded out and with a border:
```json
{
"git": {
- "inline_blame": {
- "enabled": true,
- "min_column": 80
- }
+ "hunk_style": "unstaged_hollow"
}
}
```