vscode stuff and ccache
This commit is contained in:
parent
faa35e268e
commit
471434366b
3 changed files with 188 additions and 151 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -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": {
|
||||||
|
|
|
@ -10,33 +10,54 @@
|
||||||
extensions =
|
extensions =
|
||||||
# if unfree
|
# if unfree
|
||||||
# with pkgs.vscode-marketplace;
|
# with pkgs.vscode-marketplace;
|
||||||
with pkgs.open-vsx; [
|
(
|
||||||
|
with pkgs.open-vsx;
|
||||||
|
[
|
||||||
vscodevim.vim
|
vscodevim.vim
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
github.github-vscode-theme
|
github.github-vscode-theme
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
shd101wyy.markdown-preview-enhanced
|
shd101wyy.markdown-preview-enhanced
|
||||||
fwcd.kotlin
|
|
||||||
alefragnani.bookmarks
|
alefragnani.bookmarks
|
||||||
tomrijndorp.find-it-faster
|
tomrijndorp.find-it-faster
|
||||||
streetsidesoftware.code-spell-checker
|
streetsidesoftware.code-spell-checker
|
||||||
|
emilast.logfilehighlighter
|
||||||
|
]
|
||||||
|
);
|
||||||
|
userSettings =
|
||||||
|
let
|
||||||
|
vimCommonKeyBindings = [
|
||||||
|
{
|
||||||
|
"before" = [ "C-a" ];
|
||||||
|
"commands" = [ "cursorHome" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"before" = [ "C-e" ];
|
||||||
|
"commands" = [ "cursorEnd" ];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
userSettings = {
|
in
|
||||||
|
{
|
||||||
"workbench.colorTheme" = "GitHub Dark Default";
|
"workbench.colorTheme" = "GitHub Dark Default";
|
||||||
|
"workbench.startupEditor" = "none";
|
||||||
|
"workbench.enableExperiments" = false;
|
||||||
"files.autoSave" = "onFocusChange";
|
"files.autoSave" = "onFocusChange";
|
||||||
"editor.fontFamily" = "IBM Plex Mono";
|
"editor.fontFamily" = "IBM Plex Mono";
|
||||||
"editor.fontSize" = 15;
|
"editor.fontSize" = 15;
|
||||||
|
"editor.minimap.enabled" = false;
|
||||||
"window.zoomLevel" = 0.5;
|
"window.zoomLevel" = 0.5;
|
||||||
"security.promptForLocalFileProtocolHandling" = false;
|
"security.promptForLocalFileProtocolHandling" = false;
|
||||||
"security.promptForRemoteFileProtocolHandling" = false;
|
"security.promptForRemoteFileProtocolHandling" = false;
|
||||||
"markdown-preview-enhanced.previewTheme" = "github-dark.css";
|
|
||||||
"editor.minimap.enabled" = false;
|
|
||||||
"explorer.confirmDelete" = false;
|
"explorer.confirmDelete" = false;
|
||||||
"explorer.confirmDragAndDrop" = false;
|
"explorer.confirmDragAndDrop" = false;
|
||||||
"editor.acceptSuggestionOnEnter" = "off";
|
"editor.acceptSuggestionOnEnter" = "off";
|
||||||
"editor.acceptSuggestionOnCommitCharacter" = false;
|
"editor.acceptSuggestionOnCommitCharacter" = false;
|
||||||
"workbench.startupEditor" = "none";
|
|
||||||
"git.openRepositoryInParentFolders" = "never";
|
"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;
|
||||||
|
@ -50,8 +71,10 @@
|
||||||
"terminal.integrated.sendKeybindingsToShell" = true;
|
"terminal.integrated.sendKeybindingsToShell" = true;
|
||||||
"terminal.integrated.allowChords" = false;
|
"terminal.integrated.allowChords" = false;
|
||||||
|
|
||||||
|
"markdown-preview-enhanced.previewTheme" = "github-dark.css";
|
||||||
"nix.enableLanguageServer" = true;
|
"nix.enableLanguageServer" = true;
|
||||||
"nix.serverPath" = "nil";
|
"nix.serverPath" = "nil";
|
||||||
|
"bookmarks.saveBookmarksInProject" = true;
|
||||||
|
|
||||||
"cSpell.enabledFileTypes" = {
|
"cSpell.enabledFileTypes" = {
|
||||||
"markdown" = true;
|
"markdown" = true;
|
||||||
|
@ -60,7 +83,7 @@
|
||||||
|
|
||||||
# vim stuff
|
# vim stuff
|
||||||
"vim.leader" = ",";
|
"vim.leader" = ",";
|
||||||
"vim.normalModeKeyBindings" = [
|
"vim.normalModeKeyBindings" = vimCommonKeyBindings ++ [
|
||||||
{
|
{
|
||||||
"before" = [ ";" ];
|
"before" = [ ";" ];
|
||||||
"after" = [ ":" ];
|
"after" = [ ":" ];
|
||||||
|
@ -135,18 +158,29 @@
|
||||||
"before" = [ "C-i" ];
|
"before" = [ "C-i" ];
|
||||||
"commands" = [ "workbench.action.navigateForward" ];
|
"commands" = [ "workbench.action.navigateForward" ];
|
||||||
}
|
}
|
||||||
];
|
# insert line without leaving normal mode
|
||||||
"vim.insertModeKeyBindings" = [
|
|
||||||
{
|
{
|
||||||
"before" = [ "C-a" ];
|
"before" = [
|
||||||
"commands" = [ "cursorHome" ];
|
"<space>"
|
||||||
|
"o"
|
||||||
|
];
|
||||||
|
"commands" = [ "editor.action.insertLineAfter" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"before" = [ "C-e" ];
|
"before" = [
|
||||||
"commands" = [ "cursorEnd" ];
|
"<space>"
|
||||||
|
"O"
|
||||||
|
];
|
||||||
|
"commands" = [ "editor.action.insertLineBefore" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
"vim.visualModeKeyBindings" = [
|
"vim.insertModeKeyBindings" = vimCommonKeyBindings ++ [
|
||||||
|
{
|
||||||
|
"before" = [ "C-k" ];
|
||||||
|
"commands" = [ "acceptSelectedSuggestion" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"vim.visualModeKeyBindings" = vimCommonKeyBindings ++ [
|
||||||
{
|
{
|
||||||
"before" = [ ">" ];
|
"before" = [ ">" ];
|
||||||
"commands" = [ "editor.action.indentLines" ];
|
"commands" = [ "editor.action.indentLines" ];
|
||||||
|
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue