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.

Turn off `use_on_type_format` too, for languages that have `format_on_save` disabled (#14413)

Kirill Bulatov59ce3535d389
diff --git a/assets/settings/default.json b/assets/settings/default.json
index 56af0f2e767..2e741b3c68f 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -133,14 +133,7 @@
// The default number of lines to expand excerpts in the multibuffer by.
"expand_excerpt_lines": 3,
// Globs to match against file paths to determine if a file is private.
- "private_files": [
- "**/.env*",
- "**/*.pem",
- "**/*.key",
- "**/*.cert",
- "**/*.crt",
- "**/secrets.yml"
- ],
+ "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
// Whether to use additional LSP queries to format (and amend) the code after
// every "trigger" symbol input, defined by LSP server capabilities.
"use_on_type_format": true,
@@ -729,10 +722,12 @@
}
},
"C": {
- "format_on_save": "off"
+ "format_on_save": "off",
+ "use_on_type_format": false
},
"C++": {
- "format_on_save": "off"
+ "format_on_save": "off",
+ "use_on_type_format": false
},
"CSS": {
"prettier": {
@@ -784,6 +779,7 @@
},
"Markdown": {
"format_on_save": "off",
+ "use_on_type_format": false,
"prettier": {
"allowed": true
}