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.

Fix docs `format_on_save` value is not a boolean (#18619)

Roman Zippe80cbab93f0b
diff --git a/docs/src/configuring-languages.md b/docs/src/configuring-languages.md
index 65e9f822b94..fc6de9efeab 100644
--- a/docs/src/configuring-languages.md
+++ b/docs/src/configuring-languages.md
@@ -33,7 +33,7 @@ Here's an example of language-specific settings:
"Python": {
"tab_size": 4,
"formatter": "language_server",
- "format_on_save": true
+ "format_on_save": "on"
},
"JavaScript": {
"tab_size": 2,
@@ -209,11 +209,11 @@ Zed supports both built-in and external formatters. Configure formatters globall
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
- "format_on_save": true
+ "format_on_save": "on"
},
"Rust": {
"formatter": "language_server",
- "format_on_save": true
+ "format_on_save": "on"
}
}
```
@@ -225,7 +225,7 @@ To disable formatting for a specific language:
```json
"languages": {
"Markdown": {
- "format_on_save": false
+ "format_on_save": "off"
}
}
```
@@ -276,7 +276,7 @@ Zed allows you to run both formatting and linting on save. Here's an example tha
"code_actions_on_format": {
"source.fixAll.eslint": true
},
- "format_on_save": true
+ "format_on_save": "on"
}
}
```