Skip to content

Commit

Permalink
generalize editor onsave
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterStolz committed Oct 27, 2024
1 parent 79f071f commit 3765d12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ in
imagemagick
hadolint
pre-commit
nodejs_20
yarn
(python312.withPackages (p: [
p.conda
]))
Expand Down
10 changes: 6 additions & 4 deletions home-manager/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
userSettings = {
"[python]" = {
"editor.defaultFormatter" = "ms-python.black-formatter";
"editor.formatOnSave" = true;
"editor.codeActionsOnSave" = {
"source.organizeImports" = "explicit";
};
};
"black-formatter.args" = [
"--config"
Expand All @@ -50,6 +46,12 @@
"editor.lineNumbers" = "relative";
"workbench.iconTheme" = "file-icons";
"workbench.colorTheme" = "Gruvbox Dark Medium";
"editor.formatOnSave" = true;
"editor.codeActionsOnSave"= {
"source.fixAll.eslint"= "explicit";
"source.organizeImports" = "explicit";
};
"eslint.validate"= ["javascript"];
};
# sadly not all vscode-extensions work with vscodium
#package = pkgs.vscodium;
Expand Down

0 comments on commit 3765d12

Please sign in to comment.