From 9cc53818e306872c748417ea68f0498aed9480eb Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sun, 15 Oct 2023 14:44:31 +0200 Subject: [PATCH] added autopep8 extension and fixed toml config --- systems/common/vscode.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" = {