summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/zed/settings.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/user/zed/settings.json b/user/zed/settings.json
index 27b415c..d2945a4 100644
--- a/user/zed/settings.json
+++ b/user/zed/settings.json
@@ -25,10 +25,22 @@
}
]
},
+ // By default Zed autoformats a lot of file formats (e.g. HTML, TOML, SQL) with
+ // formatters that aren't used by most projects. So I'm turning format_on_save
+ // off by default and then on for the programming languages that I use.
+ "format_on_save": "off",
"languages": {
+ "Go": {
+ "format_on_save": "on"
+ },
"Nix": {
- "language_servers": ["nixd"],
- "format_on_save": "off"
+ "language_servers": ["nixd"]
+ },
+ "Rust": {
+ "format_on_save": "on"
+ },
+ "TypeScript": {
+ "format_on_save": "on"
}
},
"lsp": {