vscode stuff and ccache

This commit is contained in:
cy 2025-03-03 09:26:57 -05:00
parent faa35e268e
commit 471434366b
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 188 additions and 151 deletions

6
flake.lock generated
View file

@ -1328,11 +1328,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1740827838, "lastModified": 1740924345,
"narHash": "sha256-xHWVg/CgaJqID4BUxqqJ47ESXRzWOxRNhJ9+jBXKuLc=", "narHash": "sha256-TO8Ttb+7PeKBkUe8vUrBt6Vxg3RMeQp4ARmlWQfcWrs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "02d071ae1fadb1a63c6122d307ca5eb7e6b4feb9", "rev": "1fc267a10f46200e32f0850caa396bd1ba4ba08e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -10,156 +10,190 @@
extensions = extensions =
# if unfree # if unfree
# with pkgs.vscode-marketplace; # with pkgs.vscode-marketplace;
with pkgs.open-vsx; [ (
vscodevim.vim with pkgs.open-vsx;
jnoortheen.nix-ide [
github.github-vscode-theme vscodevim.vim
rust-lang.rust-analyzer jnoortheen.nix-ide
shd101wyy.markdown-preview-enhanced github.github-vscode-theme
fwcd.kotlin rust-lang.rust-analyzer
alefragnani.bookmarks shd101wyy.markdown-preview-enhanced
tomrijndorp.find-it-faster alefragnani.bookmarks
streetsidesoftware.code-spell-checker tomrijndorp.find-it-faster
]; streetsidesoftware.code-spell-checker
userSettings = { emilast.logfilehighlighter
"workbench.colorTheme" = "GitHub Dark Default"; ]
"files.autoSave" = "onFocusChange"; );
"editor.fontFamily" = "IBM Plex Mono"; userSettings =
"editor.fontSize" = 15; let
"window.zoomLevel" = 0.5; vimCommonKeyBindings = [
"security.promptForLocalFileProtocolHandling" = false; {
"security.promptForRemoteFileProtocolHandling" = false; "before" = [ "C-a" ];
"markdown-preview-enhanced.previewTheme" = "github-dark.css"; "commands" = [ "cursorHome" ];
"editor.minimap.enabled" = false; }
"explorer.confirmDelete" = false; {
"explorer.confirmDragAndDrop" = false; "before" = [ "C-e" ];
"editor.acceptSuggestionOnEnter" = "off"; "commands" = [ "cursorEnd" ];
"editor.acceptSuggestionOnCommitCharacter" = false; }
"workbench.startupEditor" = "none"; ];
"git.openRepositoryInParentFolders" = "never"; in
{
"workbench.colorTheme" = "GitHub Dark Default";
"workbench.startupEditor" = "none";
"workbench.enableExperiments" = false;
"files.autoSave" = "onFocusChange";
"editor.fontFamily" = "IBM Plex Mono";
"editor.fontSize" = 15;
"editor.minimap.enabled" = false;
"window.zoomLevel" = 0.5;
"security.promptForLocalFileProtocolHandling" = false;
"security.promptForRemoteFileProtocolHandling" = false;
"explorer.confirmDelete" = false;
"explorer.confirmDragAndDrop" = false;
"editor.acceptSuggestionOnEnter" = "off";
"editor.acceptSuggestionOnCommitCharacter" = false;
"git.openRepositoryInParentFolders" = "never";
"git.ignoreLimitWarning" = true;
"extensions.ignoreRecommendations" = true;
"telemetry.enableTelemetry" = false;
"telemetry.telemetryLevel" = "off";
"window.titleBarStyle" = "custom";
# terminal stuff # terminal stuff
"terminal.integrated.cursorBlinking" = true; "terminal.integrated.cursorBlinking" = true;
"terminal.integrated.cursorStyle" = "line"; "terminal.integrated.cursorStyle" = "line";
"terminal.integrated.customGlyphs" = false; "terminal.integrated.customGlyphs" = false;
"terminal.integrated.env.linux" = { "terminal.integrated.env.linux" = {
# https://github.com/tomrijndorp/vscode-finditfaster/issues/112#issuecomment-2475227546 # https://github.com/tomrijndorp/vscode-finditfaster/issues/112#issuecomment-2475227546
FZF_DEFAULT_OPTS = "--bind ctrl-n:down,ctrl-p:up"; FZF_DEFAULT_OPTS = "--bind ctrl-n:down,ctrl-p:up";
};
# don't let the workbench handle terminal keys like ctrl+n and friends
"terminal.integrated.sendKeybindingsToShell" = true;
"terminal.integrated.allowChords" = false;
"markdown-preview-enhanced.previewTheme" = "github-dark.css";
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"bookmarks.saveBookmarksInProject" = true;
"cSpell.enabledFileTypes" = {
"markdown" = true;
"*" = false;
};
# vim stuff
"vim.leader" = ",";
"vim.normalModeKeyBindings" = vimCommonKeyBindings ++ [
{
"before" = [ ";" ];
"after" = [ ":" ];
"silent" = true;
}
{
"before" = [
"<leader>"
"m"
];
"commands" = [ "bookmarks.toggle" ];
}
{
"before" = [
"<leader>"
"l"
];
"commands" = [ "bookmarks.toggleLabeled" ];
}
{
"before" = [
"<leader>"
"b"
];
"commands" = [ "bookmarks.list" ];
}
{
"before" = [
"<leader>"
"s"
];
"commands" = [ "workbench.action.toggleSidebarVisibility" ];
}
{
"before" = [
"<leader>"
"f"
"f"
];
"commands" = [ "find-it-faster.findFiles" ];
}
{
"before" = [
"<leader>"
"f"
"g"
];
"commands" = [ "find-it-faster.findWithinFiles" ];
}
{
"before" = [
"<leader>"
"f"
"t"
];
"commands" = [ "find-it-faster.findWithinFilesWithType" ];
}
# "gd" for definitions is by default
{
"before" = [
"g"
"r"
];
"commands" = [ "editor.action.goToReferences" ];
}
# the default is weird when you need to go back within a file
{
"before" = [ "C-o" ];
"commands" = [ "workbench.action.navigateBack" ];
}
{
"before" = [ "C-i" ];
"commands" = [ "workbench.action.navigateForward" ];
}
# insert line without leaving normal mode
{
"before" = [
"<space>"
"o"
];
"commands" = [ "editor.action.insertLineAfter" ];
}
{
"before" = [
"<space>"
"O"
];
"commands" = [ "editor.action.insertLineBefore" ];
}
];
"vim.insertModeKeyBindings" = vimCommonKeyBindings ++ [
{
"before" = [ "C-k" ];
"commands" = [ "acceptSelectedSuggestion" ];
}
];
"vim.visualModeKeyBindings" = vimCommonKeyBindings ++ [
{
"before" = [ ">" ];
"commands" = [ "editor.action.indentLines" ];
}
{
"before" = [ "<" ];
"commands" = [ "editor.action.outdentLines" ];
}
];
"extensions.experimental.affinity" = {
"vscodevim.vim" = 1;
};
}; };
# don't let the workbench handle terminal keys like ctrl+n and friends
"terminal.integrated.sendKeybindingsToShell" = true;
"terminal.integrated.allowChords" = false;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"cSpell.enabledFileTypes" = {
"markdown" = true;
"*" = false;
};
# vim stuff
"vim.leader" = ",";
"vim.normalModeKeyBindings" = [
{
"before" = [ ";" ];
"after" = [ ":" ];
"silent" = true;
}
{
"before" = [
"<leader>"
"m"
];
"commands" = [ "bookmarks.toggle" ];
}
{
"before" = [
"<leader>"
"l"
];
"commands" = [ "bookmarks.toggleLabeled" ];
}
{
"before" = [
"<leader>"
"b"
];
"commands" = [ "bookmarks.list" ];
}
{
"before" = [
"<leader>"
"s"
];
"commands" = [ "workbench.action.toggleSidebarVisibility" ];
}
{
"before" = [
"<leader>"
"f"
"f"
];
"commands" = [ "find-it-faster.findFiles" ];
}
{
"before" = [
"<leader>"
"f"
"g"
];
"commands" = [ "find-it-faster.findWithinFiles" ];
}
{
"before" = [
"<leader>"
"f"
"t"
];
"commands" = [ "find-it-faster.findWithinFilesWithType" ];
}
# "gd" for definitions is by default
{
"before" = [
"g"
"r"
];
"commands" = [ "editor.action.goToReferences" ];
}
# the default is weird when you need to go back within a file
{
"before" = [ "C-o" ];
"commands" = [ "workbench.action.navigateBack" ];
}
{
"before" = [ "C-i" ];
"commands" = [ "workbench.action.navigateForward" ];
}
];
"vim.insertModeKeyBindings" = [
{
"before" = [ "C-a" ];
"commands" = [ "cursorHome" ];
}
{
"before" = [ "C-e" ];
"commands" = [ "cursorEnd" ];
}
];
"vim.visualModeKeyBindings" = [
{
"before" = [ ">" ];
"commands" = [ "editor.action.indentLines" ];
}
{
"before" = [ "<" ];
"commands" = [ "editor.action.outdentLines" ];
}
];
"extensions.experimental.affinity" = {
"vscodevim.vim" = 1;
};
};
}; };
}; };
} }

View file

@ -407,4 +407,7 @@
enable = true; enable = true;
binfmt = true; binfmt = true;
}; };
programs.ccache.enable = true;
nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
} }