docs: Add whitespace_map (#38355)

Adds docs for settings introduced in:
- https://github.com/zed-industries/zed/pull/37704

Release Notes:

- N/A
This commit is contained in:
Peter Tripp
2025-09-17 15:04:18 -04:00
committed by GitHub
parent f0b21508ec
commit 86a2649944
2 changed files with 19 additions and 0 deletions
+15
View File
@@ -2626,6 +2626,7 @@ The following settings can be overridden for each specific language:
- [`remove_trailing_whitespace_on_save`](#remove-trailing-whitespace-on-save)
- [`show_edit_predictions`](#show-edit-predictions)
- [`show_whitespaces`](#show-whitespaces)
- [`whitespace_map`](#whitespace-map)
- [`soft_wrap`](#soft-wrap)
- [`tab_size`](#tab-size)
- [`use_autoclose`](#use-autoclose)
@@ -3348,6 +3349,20 @@ Positive integer values
3. `none`
4. `boundary`
## Whitespace Map
- Description: Specify the characters used to render whitespace when show_whitespaces is enabled.
- Setting: `whitespace_map`
- Default:
```json
{
"whitespace_map": {
"space": "•",
"tab": "→"
},
```
## Soft Wrap
- Description: Whether or not to automatically wrap lines of text to fit editor / preferred width.
+4
View File
@@ -185,6 +185,10 @@ TBD: Centered layout related settings
// Visually show tabs and spaces (none, all, selection, boundary, trailing)
"show_whitespaces": "selection",
"whitespace_map": { // Which characters to show when `show_whitespaces` enabled
"space": "•",
"tab": "→"
},
"unnecessary_code_fade": 0.3, // How much to fade out unused code.