vscodium: reference black and mypy directly from nix store

This commit is contained in:
Trolli Schmittlauch 2023-10-04 21:29:06 +02:00
parent 25794fd364
commit e84b06a09e

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, config, ... }:
with pkgs;
let
@ -362,9 +362,9 @@ in
"editor.formatOnSave" = true;
};
"python.languageServer" = "Jedi"; # don't use proprietary pylance server
"black-formatter.path" = ["~/.nix-profile/bin/mypy"];
"black-formatter.path" = ["${pkgs.python3Packages.black}/bin/black"];
"black-formatter.importStrategy" = "fromEnvironment";
"mypy-type-checker.path" = ["~/.nix-profile/bin/black"];
"mypy-type-checker.path" = ["${pkgs.python3Packages.mypy}/bin/mypy"];
"mypy-type-checker.importStrategy" = "fromEnvironment";
"gitlens.telemetry.enabled" = false;
"vim.highlightedyank.enable" = true;