nix/home/programs/vscodium.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2022-06-21 21:21:48 +00:00
{pkgs, ...}: let
vscode-icons = pkgs.vscode-utils.extensionFromVscodeMarketplace {
name = "vscode-icons";
publisher = "vscode-icons-team";
version = "11.12.0";
sha256 = "sha256-jyc6m6lfwSYt5xg2H5TGdxheKptho87C7eN4xuU5IYg=";
};
tokyo-night = pkgs.vscode-utils.extensionFromVscodeMarketplace {
name = "tokyo-night";
publisher = "enkia";
version = "0.8.4";
sha256 = "sha256-h4mE+Vv/o2MxkNb3kT9gLeDNCGQ5AvyR5nsi3cEUS5U=";
};
direnv = pkgs.vscode-utils.extensionFromVscodeMarketplace {
name = "direnv";
publisher = "mkhl";
version = "0.6.1";
sha256 = "sha256-5/Tqpn/7byl+z2ATflgKV1+rhdqj+XMEZNbGwDmGwLQ=";
};
in {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
userSettings = {
"update.channel" = "none";
"workbench.iconTheme" = "vscode-icons";
"python.languageServer" = "Pylance";
"python.analysis.completeFunctionParens" = true;
"python.analysis.autoSearchPaths" = true;
"python.analysis.autoImportCompletions" = true;
"python.experiments.enabled" = false;
};
extensions = with pkgs.vscode-extensions; [
ms-python.vscode-pylance
vscode-icons
tokyo-night
kahole.magit
editorconfig.editorconfig
kamadorueda.alejandra
rust-lang.rust-analyzer
ms-toolsai.jupyter
ms-python.python
eamodio.gitlens
christian-kohler.path-intellisense
direnv
];
};
}