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.

YAML: set auto_indent_using_last_non_empty_line to false (fix wonky formatting) (#13351)

Piotr Osiewicz4dd05a80e0b1
diff --git a/crates/languages/src/yaml/config.toml b/crates/languages/src/yaml/config.toml
index 43b21a13298..434c414eafa 100644
--- a/crates/languages/src/yaml/config.toml
+++ b/crates/languages/src/yaml/config.toml
@@ -9,6 +9,7 @@ brackets = [
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
]
+auto_indent_using_last_non_empty_line = false
increase_indent_pattern = ":\\s*[|>]?\\s*$"
prettier_parser_name = "yaml"
tab_size = 2