diff --git a/systems/common/vscode.nix b/systems/common/vscode.nix index 9231f8d..48f744a 100644 --- a/systems/common/vscode.nix +++ b/systems/common/vscode.nix @@ -25,6 +25,7 @@ mkhl.direnv ms-python.python ms-python.vscode-pylance + ms-python.autopep8 james-yu.latex-workshop github.copilot davidanson.vscode-markdownlint @@ -53,6 +54,7 @@ "[python]" = { "editor.formatOnSave" = true; "editor.formatOnSaveMode" = "modificationsIfAvailable"; + "editor.defaultFormatter" = "ms-python.autopep8"; }; "[latex]" = { @@ -62,11 +64,9 @@ "[toml]" = { "editor.formatOnSave" = true; - "editor.modificationsIfAvailable" = "file"; + "editor.formatOnSaveMode" = "modificationsIfAvailable"; }; - "python.formatting.autopep8Path" = "${pkgs.python311Packages.autopep8}/bin/autopep8"; - "nix.enableLanguageServer" = true; "nix.serverPath" = "${pkgs.nil}/bin/nil"; "nix.serverSettings" = {