Skip to content

Commit

Permalink
Add configuration doc for gutters characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadronized committed Jan 18, 2023
1 parent ae364de commit a9691ef
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ layout = ["diff", "diagnostics", "line-numbers", "spacer"]

#### `[editor.gutters.line-numbers]` Section

Options for the line number gutter
Options for the line number gutter.

| Key | Description | Default |
| --- | --- | --- |
Expand All @@ -296,13 +296,36 @@ Example:
min-width = 1
```

#### `[editor.gutters.diagnotics]` Section
#### `[editor.gutters.diagnostics]` Section

Currently unused
Options for the diagnostics gutter.

| Key | Description | Default |
| --- | --- | --- |
| `characters` | Characters to be used in the gutter column | `"●"` |

#### `[editor.gutters.breakpoints]` Section

Options for the breakpoints gutter.

| Key | Description | Default |
| --- | --- | --- |
| `characters.verified` | Characters to be used in the gutter column for verified breakpoints | `"▲"` |
| `characters.other` | Characters to be used in the gutter column for other breakpoints | `"⊚"` |

Alternatively, you can use the `[editor.gutters.breakpoints.characters]` section
and use the `verified` and `other` keys.

#### `[editor.gutters.diff]` Section

Currently unused
| Key | Description | Default |
| --- | --- | --- |
| `characters.add` | Characters to be used in the gutter column for code additions | `"▍"` |
| `characters.remove` | Characters to be used in the gutter column for code deletions | `"▔"` |
| `characters.change` | Characters to be used in the gutter column for code changes | `"▍"` |

Alternatively, you can use the `[editor.gutters.diff.characters]` section
and use the `add`, `remove` and `change` keys.

#### `[editor.gutters.spacer]` Section

Expand Down

0 comments on commit a9691ef

Please sign in to comment.