From b1a549d4fa7f58d046242a037fd5f58a3e2bee49 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 6 Apr 2025 23:52:45 +0900 Subject: [PATCH] .devcontainer: apply nixfmt-rfc-style on save formatterPath does not support the specifier "nixfmt-rfc-style" https://github.com/nix-community/vscode-nix-ide/blob/92fdb077e9f18cc0048b15b1c07e5d18d629f76c/package.json#L76-L85 Currently it is just ignored, because of we are setting LSP. https://github.com/nix-community/vscode-nix-ide/blob/92fdb077e9f18cc0048b15b1c07e5d18d629f76c/README.md?plain=1#L63 This commit removes the unused config and enables auto formatter on save. --- .devcontainer/devcontainer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 02b2f9f0273d..7bf32902a87a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,9 @@ "jnoortheen.nix-ide" ], "settings": { - "nix.formatterPath": "nixfmt-rfc-style", + "[nix]": { + "editor.formatOnSave": true + }, "nix.enableLanguageServer": true, "nix.serverPath": "nixd" }