added autopep8 extension and fixed toml config

This commit is contained in:
Kristian Krsnik 2023-10-15 14:44:31 +02:00
parent f7b84c1de6
commit 9cc53818e3
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

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