66 lines
1.7 KiB
Nix
66 lines
1.7 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
vars,
|
|
...
|
|
}: let
|
|
in {
|
|
home-manager.users.${vars.user} = {
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscodium;
|
|
enableUpdateCheck = false;
|
|
extensions = with pkgs.vscode-extensions; [
|
|
catppuccin.catppuccin-vsc
|
|
pkief.material-icon-theme
|
|
vscodevim.vim
|
|
bbenoist.nix
|
|
ms-python.python
|
|
ms-toolsai.jupyter
|
|
ms-toolsai.jupyter-renderers
|
|
ms-toolsai.jupyter-keymap
|
|
];
|
|
userSettings = {
|
|
#Theming
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
"catppuccin.accentColor" = "teal";
|
|
"workbench.iconTheme" = "material-icon-theme";
|
|
"window.menuBarVisibility" = "toggle";
|
|
"editor.minimap.autohide" = false;
|
|
#Extensions - General
|
|
"extensions.autoCheckUpdates" = false;
|
|
"extensions.autoUpdate" = false;
|
|
# Startup
|
|
"workbench.startupEditor" = "none";
|
|
# Vim
|
|
"editor.lineNumbers" = "relative";
|
|
};
|
|
keybindings = [
|
|
# Navigating Autosuggest and Quick Open entries
|
|
{
|
|
"key" = "ctrl+j";
|
|
"command" = "selectNextSuggestion";
|
|
"when" = "suggestWidgetVisible";
|
|
}
|
|
{
|
|
"key" = "ctrl+k";
|
|
"command" = "selectPrevSuggestion";
|
|
"when" = "suggestWidgetVisible";
|
|
}
|
|
{
|
|
"key" = "ctrl+j";
|
|
"command" = "workbench.action.quickOpenSelectNext";
|
|
"when" = "inQuickOpen";
|
|
}
|
|
{
|
|
"key" = "ctrl+k";
|
|
"command" = "workbench.action.quickOpenSelectPrevious";
|
|
"when" = "inQuickOpen";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
# programs.vscode.package = pkgs.vscodium.fhsWithPackages (ps: with ps; [rustup zlib]);
|
|
}
|