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"; }; };