Skip to content

Commit

Permalink
added vscodium
Browse files Browse the repository at this point in the history
  • Loading branch information
Sly-Harvey committed Apr 19, 2024
1 parent 9e4fea0 commit 8f757fa
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 45 deletions.
2 changes: 1 addition & 1 deletion hosts/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
../modules/programs/starship
../modules/services/tlp # Set cpu power settings
../modules/programs/tmux
#../modules/programs/vscode
../modules/programs/vscodium
../modules/programs/spicetify
../modules/programs/zsh
];
Expand Down
44 changes: 0 additions & 44 deletions modules/programs/vscode/default.nix

This file was deleted.

110 changes: 110 additions & 0 deletions modules/programs/vscodium/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
username,
pkgs,
...
}: {
home-manager.users.${username} = _: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
arrterian.nix-env-selector
eamodio.gitlens
github.vscode-github-actions
yzhang.markdown-all-in-one
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
# vscodevim.vim
# tamasfe.even-better-toml
# redhat.vscode-yaml
# vadimcn.vscode-lldb
# rust-lang.rust-analyzer
ms-vscode.cpptools
# ms-vscode.cmake-tools
# ms-vscode.makefile-tools
# ms-dotnettools.csharp
ms-python.python
# pkief.material-icon-theme
# equinusocio.vsc-material-theme
# dracula-theme.theme-dracula
];
keybindings = [
{
key = "ctrl+q";
command = "editor.action.commentLine";
when = "editorTextFocus && !editorReadonly";
}
{
key = "ctrl+s";
command = "workbench.action.files.saveFiles";
}
];
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'";
"editor.fontSize" = 14;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"catppuccin.accentColor" = "lavender";
"vsicons.dontShowNewVersionMessage" = true;
"explorer.confirmDragAndDrop" = false;
"editor.fontLigatures" = true;
"editor.minimap.enabled" = true; # minimap view
"workbench.startupEditor" = "none";

"editor.formatOnSave" = true;
"editor.formatOnType" = true;
"editor.formatOnPaste" = true;

"workbench.layoutControl.type" = "menu";
"workbench.editor.limit.enabled" = true;
"workbench.editor.limit.value" = 10;
"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;

"C_Cpp.autocompleteAddParentheses" = true;
"C_Cpp.formatting" = "vcFormat";
"C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyFunction" = true;
"C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyType" = true;
"C_Cpp.vcFormat.space.beforeEmptySquareBrackets" = true;
"C_Cpp.vcFormat.newLine.beforeOpenBrace.block" = "sameLine";
"C_Cpp.vcFormat.newLine.beforeOpenBrace.function" = "sameLine";
"C_Cpp.vcFormat.newLine.beforeElse" = false;
"C_Cpp.vcFormat.newLine.beforeCatch" = false;
"C_Cpp.vcFormat.newLine.beforeOpenBrace.type" = "sameLine";
"C_Cpp.vcFormat.space.betweenEmptyBraces" = true;
"C_Cpp.vcFormat.space.betweenEmptyLambdaBrackets" = true;
"C_Cpp.vcFormat.indent.caseLabels" = true;
"C_Cpp.intelliSenseCacheSize" = 2048;
"C_Cpp.intelliSenseMemoryLimit" = 2048;
"C_Cpp.default.browse.path" = [
''''${workspaceFolder}/**''
];
"C_Cpp.default.cStandard" = "gnu11";
"C_Cpp.inlayHints.parameterNames.hideLeadingUnderscores" = false;
"C_Cpp.intelliSenseUpdateDelay" = 500;
"C_Cpp.workspaceParsingPriority" = "medium";
"C_Cpp.clang_format_sortIncludes" = true;
"C_Cpp.doxygen.generatedStyle" = "/**";
};
};
};
}

0 comments on commit 8f757fa

Please sign in to comment.