Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Automatically indent the cursor when adding a newline after a `{` in Gleam code files (#8097)
Joseph T. Lyons58a5a1eb8f92
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex 2212d18da2d..1df60279db6 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -494,6 +494,9 @@"Elixir": {"tab_size": 2},+ "Gleam": {+ "tab_size": 2+ },"Go": {"tab_size": 4,"hard_tabs": true,diff --git a/crates/zed/src/languages/gleam/indents.scm b/crates/zed/src/languages/gleam/indents.scmnew file mode 100644index 00000000000..e9754690920--- /dev/null+++ b/crates/zed/src/languages/gleam/indents.scm@@ -0,0 +1 @@+(_ "{" "}" @end) @indent