From 4fb1431e83ccfd6be176307e5ff6aaaef84e2249 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Mon, 23 Sep 2024 18:56:09 -0500 Subject: [PATCH] vscode workspace settings and 2 extra extensions --- .vscode/settings.json | 10 ++++++++++ nixos/modules/nixos/editor/vscode.nix | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index f872afc..bbaf731 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,4 +7,14 @@ "editor.guides.highlightActiveBracketPair": true, "files.trimTrailingWhitespace": true, "sops.defaults.ageKeyFile": "age.key", + "nix.enableLanguageServer": true, + "nix.serverPath": "/run/current-system/sw/bin/nil", + "nix.formatterPath": "/run/current-system/sw/bin/nixpkgs-fmt", + "nix.serverSettings": { + "nil": { + "formatting": { + "command": ["nixpkgs-fmt"] + } + } + }, } diff --git a/nixos/modules/nixos/editor/vscode.nix b/nixos/modules/nixos/editor/vscode.nix index c24c73d..d142b56 100644 --- a/nixos/modules/nixos/editor/vscode.nix +++ b/nixos/modules/nixos/editor/vscode.nix @@ -32,6 +32,8 @@ let "fill-labs.dependi" "rust-lang.rust-analyzer" "dustypomerleau.rust-syntax" + "mattheworford.hocon-tools" + "pgourlain.erlang" # "github.copilot-chat" ]; # Nixpkgs Extensions. These are updated whenver they get around to it.