Adds VSCode extensions for python

nix-darwin
Abhinav Sarkar 2023-03-03 16:45:10 +05:30
parent d948c379bb
commit cf0c1bf8a0
2 changed files with 25 additions and 1 deletions

View File

@ -7,6 +7,9 @@ let
"dawhite/mustache"
"GitHub/copilot"
"kirozen/wordcounter"
"ms-python/black-formatter"
"ms-python/python"
"ms-python/vscode-pylance"
"pedrorgirardi/vscode-cljfmt"
"wmaurer/change-case"
];
@ -142,6 +145,9 @@ in {
"[haskell]" = { editor.defaultFormatter = "haskell.haskell"; };
"[javascript]" = { editor.defaultFormatter = "esbenp.prettier-vscode"; };
"[json]" = { editor.defaultFormatter = "esbenp.prettier-vscode"; };
"[python]" = { editor.defaultFormatter = "ms-python.black-formatter"; };
black-formatter.args = ["--line-length" "100"];
};
keybindings = [

View File

@ -101,6 +101,24 @@
version = "1.30.0";
sha256 = "000zhgzijf3h6abhv4p3cz99ykj6489wfn81j0s691prr8q9lxxh";
}
{
name = "black-formatter";
publisher = "ms-python";
version = "2023.1.10581010";
sha256 = "14ab8hcqg37wa7mjbkrx4bmzrpgrdjvh2jswqra6j9c0jzbhb25k";
}
{
name = "python";
publisher = "ms-python";
version = "2023.5.10621009";
sha256 = "1iglj0vh5nga86sj508l85pl687i8p2q99vrsp98hxqd96z20c5i";
}
{
name = "vscode-pylance";
publisher = "ms-python";
version = "2023.3.11";
sha256 = "1cniqhjyzjc9zn9dhr9dnj416f9j5lrd0x6z0clhxa5i0hsc2sb8";
}
{
name = "vscode-cljfmt";
publisher = "pedrorgirardi";
@ -144,4 +162,4 @@
sha256 = "1hxh5wg39h5k3p2cgh8vdh7l0pxsrw2cvfwbhsx8ifs8748qagi5";
}
];
}
}