summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2025-04-06 23:52:45 +0900
committerKenichi Kamiya <kachick1@gmail.com>2025-04-06 23:52:51 +0900
commitb1a549d4fa7f58d046242a037fd5f58a3e2bee49 (patch)
tree3de27e2310d13220e8758575754e49bb48b79cd5 /.devcontainer
parentvscode-extensions.42crunch.vscode-openapi: 4.27.0 -> 4.33.1 and fix license (... (diff)
downloadnixpkgs-b1a549d4fa7f58d046242a037fd5f58a3e2bee49.tar.gz
.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.
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/devcontainer.json4
1 files changed, 3 insertions, 1 deletions
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"
}