Compare commits
2 commits
e1f16f2c71
...
b5ac576fa9
Author | SHA1 | Date | |
---|---|---|---|
|
b5ac576fa9 | ||
|
ff5e044ea0 |
|
@ -238,6 +238,7 @@ let
|
||||||
numpy
|
numpy
|
||||||
matplotlib
|
matplotlib
|
||||||
jedi
|
jedi
|
||||||
|
jedi-language-server
|
||||||
black
|
black
|
||||||
flake8
|
flake8
|
||||||
mypy
|
mypy
|
||||||
|
@ -342,11 +343,13 @@ in
|
||||||
sha256 = "sha256-lJG0RRUUMhQGs2a6oBtoqt+uY1kSJ0+cbmaP07hNh2o=";
|
sha256 = "sha256-lJG0RRUUMhQGs2a6oBtoqt+uY1kSJ0+cbmaP07hNh2o=";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
userSettings = {
|
userSettings = let
|
||||||
|
defaultPython = pkgs.python3.withPackages (ps: [ps.jedi ps.jedi-language-server ps.pip ps.black ps.mypy]);
|
||||||
|
in {
|
||||||
"editor.fontLigatures" = true;
|
"editor.fontLigatures" = true;
|
||||||
"window.autoDetectColorScheme" = true;
|
"window.autoDetectColorScheme" = true;
|
||||||
"workbench.preferredDarkColorScheme" = "Default Dark Modern";
|
"workbench.preferredDarkColorTheme" = "Default Dark Modern";
|
||||||
"workbench.preferredLightColorScheme" = "Default Light Modern";
|
"workbench.preferredLightColorTheme" = "Default Light Modern";
|
||||||
"[nix]" = {
|
"[nix]" = {
|
||||||
"editor.insertSpaces" = true;
|
"editor.insertSpaces" = true;
|
||||||
"editor.tabSize" = 2;
|
"editor.tabSize" = 2;
|
||||||
|
@ -369,6 +372,7 @@ in
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
};
|
};
|
||||||
"python.languageServer" = "Jedi"; # don't use proprietary pylance server
|
"python.languageServer" = "Jedi"; # don't use proprietary pylance server
|
||||||
|
"python.defaultInterpreterPath" = "${defaultPython}/bin/python";
|
||||||
"black-formatter.path" = ["${pkgs.python3Packages.black}/bin/black"];
|
"black-formatter.path" = ["${pkgs.python3Packages.black}/bin/black"];
|
||||||
"black-formatter.importStrategy" = "fromEnvironment";
|
"black-formatter.importStrategy" = "fromEnvironment";
|
||||||
"mypy-type-checker.path" = ["${pkgs.python3Packages.mypy}/bin/mypy"];
|
"mypy-type-checker.path" = ["${pkgs.python3Packages.mypy}/bin/mypy"];
|
||||||
|
|
Loading…
Reference in a new issue