feat: init

This commit is contained in:
Nick 2025-03-29 23:08:26 -05:00
commit 96c6f790fc
804 changed files with 33411 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
with pkgs.vscode-extensions;
[
catppuccin.catppuccin-vsc
eamodio.gitlens
elmtooling.elm-ls-vscode
esbenp.prettier-vscode
haskell.haskell
james-yu.latex-workshop
bbenoist.nix
# jnoortheen.nix-ide
mattn.lisp
mkhl.direnv
pkief.material-icon-theme
streetsidesoftware.code-spell-checker
tamasfe.even-better-toml
brettm12345.nixfmt-vscode
]

View file

@ -0,0 +1,27 @@
[
{
key = "ctrl+shift+s";
command = "editor.action.insertCursorAtEndOfEachLineSelected";
when = "textInputFocus";
}
{
key = "ctrl+shift+a";
command = "editor.action.quickFix";
when = "editorHasCodeActionsProvider && textInputFocus && !editorReadonly";
}
{
key = "ctrl+shift+f";
command = "editor.action.formatDocument";
when = "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor";
}
{
key = "ctrl+shift+tab";
command = "editor.action.indentationToSpaces";
when = "textInputFocus";
}
{
key = "ctrl+shift+d";
command = "editor.action.deleteLines";
when = "textInputFocus";
}
]

View file

@ -0,0 +1,40 @@
{
lib,
pkgs,
flake,
...
}:
let
inherit (flake.config.aesthetics.themes)
fonts
;
in
{
"git.confirmSync" = false;
"editor.insertSpaces" = false;
"files.autoSave" = "afterDelay";
"git.enableSmartCommit" = true;
"nix.enableLanguageServer" = true;
"nix.serverPath" = lib.getExe pkgs.nil;
"nix.formatterPath" = lib.getExe pkgs.haskellPackages.nixfmt;
"window.menuBarVisibility" = "toggle";
"workbench.iconTheme" = "material-icon-theme";
"workbench.startupEditor" = "none";
"workbench.colorTheme" = "Catppuccin Macchiato";
"workbench.statusBar.visible" = false;
"editor.multiCursorLimit" = 700000;
"editor.wordWrap" = "on";
"editor.fontSize" = fonts.sizes.applications.size0;
"editor.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
"terminal.integrated.fontSize" = fonts.sizes.applications.size0;
"terminal.integrated.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
"editor.fontLigatures" = true;
"elmLS.disableElmLSDiagnostics" = true;
"elmLS.elmReviewDiagnostics" = "warning";
"elmLS.elmReviewPath" =
"/nix/store/r19y19rx5b7l4dzapbx1g64d30yisby1-elm-review-2.10.3/bin/elm-review";
"editor.formatOnSave" = true;
"[elm]" = {
"editor.defaultFormatter" = "elmTooling.elm-ls-vscode";
};
}

View file

@ -0,0 +1,36 @@
{
pkgs,
lib,
flake,
...
}:
{
programs = {
vscode =
let
configPath = ./config;
keybindingsPath = import (configPath + /keybindings.nix);
extensionsPath = import (configPath + /extensions.nix) {
inherit
pkgs
;
};
userSettingsPath = import (configPath + /userSettings.nix) {
inherit
pkgs
lib
flake
;
};
in
{
enable = true;
package = pkgs.vscode;
profiles.default = {
keybindings = keybindingsPath;
extensions = extensionsPath;
userSettings = userSettingsPath;
};
};
};
}