70 lines
2.3 KiB
Nix
70 lines
2.3 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscodium;
|
|
extensions = with pkgs.vscode-extensions; [
|
|
# nix language
|
|
bbenoist.nix
|
|
# python
|
|
ms-python.python
|
|
|
|
# .md preview
|
|
shd101wyy.markdown-preview-enhanced
|
|
|
|
# Color theme
|
|
catppuccin.catppuccin-vsc
|
|
catppuccin.catppuccin-vsc-icons
|
|
];
|
|
userSettings = {
|
|
"update.mode" = "none";
|
|
"extensions.autoUpdate" = false; # This stuff fixes vscode freaking out when theres an update
|
|
"window.titleBarStyle" = "custom"; # needed otherwise vscode crashes, see https://github.com/NixOS/nixpkgs/issues/246509
|
|
|
|
"window.menuBarVisibility" = "toggle";
|
|
"editor.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont', 'monospace', monospace";
|
|
"terminal.integrated.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont'";
|
|
"markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited" = true;
|
|
"editor.fontSize" = 16;
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
"workbench.iconTheme" = "catppuccin-mocha";
|
|
"vsicons.dontShowNewVersionMessage" = true;
|
|
"explorer.confirmDragAndDrop" = false;
|
|
"editor.fontLigatures" = true;
|
|
"editor.minimap.enabled" = false;
|
|
"workbench.startupEditor" = "none";
|
|
|
|
"workbench.layoutControl.type" = "menu";
|
|
"workbench.editor.limit.enabled" = true;
|
|
"workbench.editor.limit.value" = 5;
|
|
"workbench.editor.limit.perEditorGroup" = true;
|
|
"workbench.editor.showTabs" = "single";
|
|
"files.autoSave" = "onWindowChange";
|
|
"explorer.openEditors.visible" = 0;
|
|
"breadcrumbs.enabled" = false;
|
|
"editor.renderControlCharacters" = false;
|
|
"workbench.activityBar.location" = "hidden";
|
|
"workbench.statusBar.visible" = false;
|
|
"editor.scrollbar.verticalScrollbarSize" = 2;
|
|
"editor.scrollbar.horizontalScrollbarSize" = 2;
|
|
"editor.scrollbar.vertical" = "hidden";
|
|
"editor.scrollbar.horizontal" = "hidden";
|
|
"workbench.layoutControl.enabled" = false;
|
|
|
|
"editor.mouseWheelZoom" = true;
|
|
};
|
|
# Keybindings
|
|
keybindings = [
|
|
{
|
|
key = "ctrl+q";
|
|
command = "editor.action.commentLine";
|
|
when = "editorTextFocus && !editorReadonly";
|
|
}
|
|
{
|
|
key = "ctrl+s";
|
|
command = "workbench.action.files.saveFiles";
|
|
}
|
|
];
|
|
};
|
|
}
|