From b9a706b7c720ca2b75a19e765655f6544ed8cfa4 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 27 Jun 2025 05:30:50 +0200 Subject: tweak(workstation): turn format_on_save off by default in Zed --- user/zed/settings.json | 16 ++++++++++++++-- 1 file 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": { -- cgit v1.2.3