diff options
author | Martin Fischer <martin@push-f.com> | 2025-06-27 05:30:50 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-06-27 05:31:04 +0200 |
commit | b9a706b7c720ca2b75a19e765655f6544ed8cfa4 (patch) | |
tree | e0add90ce27cb493fcebc3f6f8069c28513e17d9 /user | |
parent | cbc8e2be99b8ddd2c1a95d4bfaa5a78bd70d2b4e (diff) |
tweak(workstation): turn format_on_save off by default in Zed
Diffstat (limited to 'user')
-rw-r--r-- | user/zed/settings.json | 16 |
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": { |