Files
nix-zaneyos/hosts/garand-laptop/home/codium/default.nix

262 lines
8.8 KiB
Nix

{pkgs, ...}: {
programs.vscode.profiles.default = {
extensions = with pkgs.vscode-extensions;
[
christian-kohler.path-intellisense
continue.continue
davidanson.vscode-markdownlint
donjayamanne.githistory
ethansk.restore-terminals
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
gruntfuggly.todo-tree
jnoortheen.nix-ide
mechatroner.rainbow-csv
ms-azuretools.vscode-docker
oderwat.indent-rainbow
shd101wyy.markdown-preview-enhanced
streetsidesoftware.code-spell-checker
supermaven.supermaven
tomoki1207.pdf
visualstudioexptteam.intellicode-api-usage-examples
visualstudioexptteam.vscodeintellicode
vscode-icons-team.vscode-icons
tamasfe.even-better-toml
ms-ceintl.vscode-language-pack-pl
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "one-dark-pro-monokai-darker";
publisher = "eserozvataf";
version = "1.1.0";
hash = "sha256-jUjBiy0CD7jw2WBMvM3h8bEC2ySEuj7532dC3v9lpyI=";
}
{
name = "tab-indent-space-align";
publisher = "j-zeppenfeld";
version = "0.0.3";
hash = "sha256-+WEdYJOVWW7YumfzLkvZmrnpUiC85oLsG1BKMwL1NHc=";
}
{
name = "polacode-2019";
publisher = "jeff-hykin";
version = "0.6.1";
hash = "sha256-SbfsD28gaVHAmJskUuc1Q8kA47jrVa3OO5Ur7ULk3jI=";
}
{
name = "csv-to-table";
publisher = "phplasma";
version = "1.4.1";
hash = "sha256-npe7cQ4lAZr8HCyQSJmVsCDUJcOhGhL6y1QtUtqUY50=";
}
{
name = "bash-debug";
publisher = "rogalmic";
version = "0.3.9";
hash = "sha256-f8FUZCvz/PonqQP9RCNbyQLZPnN5Oce0Eezm/hD19Fg=";
}
{
name = "svg-preview";
publisher = "simonsiefke";
version = "2.8.3";
hash = "sha256-hIVe1MmkyuHoDa56ZQUsSAGMlKWABoQ0FBOfgZZDbCw=";
}
{
name = "autoimport";
publisher = "steoates";
version = "1.5.4";
hash = "sha256-7iIwJJsoNbtTopc+BQ+195aSCLqdNAaGtMoxShyhBWY=";
}
{
name = "code-spell-checker-polish";
publisher = "streetsidesoftware";
version = "2.1.3";
hash = "sha256-MZeTvK9dO4Kj6hK+afJPWGmnKBtlLrrnoqtUd5s2te0=";
}
{
name = "vscode-pets";
publisher = "tonybaloney";
version = "1.30.0";
hash = "sha256-RxOA6xQ29JuB0NzEqMDkF9W1U+AsvgAOzGbtIUw0WyM=";
}
{
name = "prettify-json";
publisher = "mohsen1";
version = "0.0.3";
hash = "sha256-lvds+lFDzt1s6RikhrnAKJipRHU+Dk85ZO49d1sA8uo=";
}
];
userSettings = {
# Editor appearance and behavior
"editor.cursorBlinking" = "expand";
"editor.foldingImportsByDefault" = true;
"editor.fontFamily" = "FiraCode Nerd Font";
"editor.formatOnPaste" = true;
"editor.formatOnSave" = true;
"editor.guides.bracketPairs" = false;
"editor.guides.indentation" = false;
"editor.inlayHints.enabled" = "off";
"editor.inlineSuggest.showToolbar" = "always";
"editor.largeFileOptimizations" = false;
"editor.minimap.enabled" = false;
"editor.quickSuggestions" = {
"strings" = "on";
};
"editor.suggestFontSize" = 16;
"editor.suggestLineHeight" = 30;
"editor.tabSize" = 2;
"editor.unicodeHighlight.ambiguousCharacters" = false;
"editor.unicodeHighlight.invisibleCharacters" = false;
"editor.wordWrap" = "off";
"editor.hover.enabled" = true;
"editor.gotoLocation.multipleDefinitions" = "goto";
# Workbench settings
"workbench.colorCustomizations" = {
"editor.lineHighlightBackground" = "#1073cf2d";
"editor.lineHighlightBorder" = "#9fced11f";
};
"workbench.colorTheme" = "One Dark Pro Monokai Darker";
"workbench.iconTheme" = "vscode-icons";
"workbench.startupEditor" = "none";
# Terminal settings
"terminal.integrated.fontFamily" = "FiraCode Nerd Fonts Mono";
# Git settings
"git.confirmSync" = false;
"git.enableSmartCommit" = true;
# Explorer settings
"explorer.confirmDelete" = false;
"explorer.confirmDragAndDrop" = false;
# Diff editor settings
"diffEditor.ignoreTrimWhitespace" = false;
"diffEditor.wordWrap" = "off";
# Zen mode settings
"zenMode.centerLayout" = false;
"zenMode.hideActivityBar" = false;
"zenMode.hideLineNumbers" = false;
# File associations
"files.associations" = {
"*.html" = "html";
"*.txt" = "plaintext";
};
# Navigation and intellisense
"path-intellisense.extensionOnImport" = true;
# Markdown settings
"markdown-preview-enhanced.previewTheme" = "one-dark.css";
# Extension specific settings
"supermaven.allowGitignore" = true;
"supermaven.enable" = {
"*" = true;
};
"continue.enableTabAutocomplete" = false;
"continue.showInlineTip" = false;
"continue.telemetryEnabled" = false;
"hediet.vscode-drawio.resizeImages" = null;
"todo-tree.highlights.useColourScheme" = true;
"vite.autoStart" = false;
# Syntax highlighting and appearance
"indentRainbow.colorOnWhiteSpaceOnly" = true;
"indentRainbow.indicatorStyle" = "light";
"indentRainbow.lightIndicatorStyleLineWidth" = 4;
# Spelling and language
"cSpell.language" = "en,pl";
"cSpell.userWords" = [
"garand"
"Garand's"
"garandplg"
"garands"
"lockb"
"Shadcn"
"Vite"
];
# Security and trust
"security.workspace.trust.untrustedFiles" = "open";
# Remote development
"remote.autoForwardPortsSource" = "hybrid";
# Misc
"vsintellicode.modify.editor.suggestSelection" = "automaticallyOverrodeDefaultValue";
"githubLocalActions.workflowsDirectory" = ".gitea/workflows";
};
languageSnippets = {
"jsonc,json,jsonl" = {
"Restore Terminals" = {
body = [
" \"restoreTerminals.terminals\": ["
" {"
" \"splitTerminals\": ["
" {"
" \"name\": \"server\","
" \"commands\": [\"npm i\", \"npm run dev\"]"
" },"
" {"
" \"name\": \"client\","
" \"commands\": [\"npm run dev:client\"]"
" },"
" {"
" \"name\": \"test\","
" \"commands\": [\"jest --watch\"]"
" }"
" ]"
" },"
" {"
" \"splitTerminals\": ["
" {"
" \"name\": \"build & e2e\","
" \"commands\": [\"npm run eslint\", \"npm run build\", \"npm run e2e\"],"
" \"shouldRunCommands\": false"
" },"
" {"
" \"name\": \"worker\","
" \"commands\": [\"npm-run-all --parallel redis tsc-watch-start worker\"]"
" }"
" ]"
" }"
" ]"
];
description = "Boilerplate for restore terminals";
prefix = [
"term"
];
};
};
"nix" = {
"Nix-Shell-Default" = {
body = [
"{"
" pkgs ? import <nixpkgs> {},"
"}:"
"pkgs.mkShell {"
" packages = with pkgs; [];"
"}"
];
description = "Podstawa do shelli nix";
prefix = [
"nix-shell"
];
};
};
};
keybindings = [
{
"key" = "tab";
"command" = "-editor.emmet.action.expandAbbreviation";
"when" = "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus";
}
{
"key" = "tab";
"command" = "-editor.action.inlineSuggest.jump";
"when" = "inlineEditIsVisible && tabShouldJumpToInlineEdit && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible";
}
{
"key" = "tab";
"command" = "-Alignment Preserving Indent";
"when" = "editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion != 'on'";
}
{
"key" = "tab";
"command" = "-Alignment Preserving Indent";
"when" = "editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'";
}
];
};
}