From 73b74531a2d7687b24ed00fb69d3f140c08ef158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 15:26:52 +0100 Subject: [PATCH] add formatting and sops --- programs/editors/vscode/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/programs/editors/vscode/default.nix b/programs/editors/vscode/default.nix index c2757fdc..f7e6a018 100644 --- a/programs/editors/vscode/default.nix +++ b/programs/editors/vscode/default.nix @@ -12,11 +12,19 @@ jnoortheen.nix-ide mkhl.direnv pkief.material-icon-theme + signageos.signageos-vscode-sops ]; userSettings = { + "editor.formatOnPaste" = true; + "editor.formatOnSave" = true; + "editor.formatOnType" = true; "nix.enableLanguageServer" = true; "nix.formatterPath" = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; "nix.serverPath" = "${pkgs.nil}/bin/nil"; + "nix.serverSettings" = { + nil.formatting.command = [ "${pkgs.nixfmt-rfc-style}/bin/nixfmt" ]; + }; + "sops.binPath" = "${pkgs.sops}/bin/sops"; "workbench.iconTheme" = "material-icon-theme"; }; };