mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
add vscode keybinds
This commit is contained in:
parent
8d67b78f5b
commit
43daf5af38
1 changed files with 36 additions and 27 deletions
|
@ -77,36 +77,45 @@ in
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(writeShellScriptBin "my-vscode-settings" ''
|
||||||
|
ln -sf /etc/vscode-settings.json ~/.config/VSCodium/User/settings.json
|
||||||
|
ln -sf /etc/vscode-keybindings.json ~/.config/VSCodium/User/keybindings.json
|
||||||
|
'')
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.etc."vscode-user-settings.json".text =
|
environment.etc."vscode-settings.json".text = builtins.toJSON {
|
||||||
"//usr/bin/env ln -sf $0 ~/.config/VSCodium/User/settings.json; exit 0"
|
"editor.renderFinalNewline" = false;
|
||||||
+ "\n" + builtins.toJSON {
|
"editor.scrollBeyondLastLine" = false;
|
||||||
"editor.renderFinalNewline" = false;
|
"extensions.autoCheckUpdates" = false;
|
||||||
"editor.scrollBeyondLastLine" = false;
|
"extensions.autoUpdate" = false;
|
||||||
"extensions.autoCheckUpdates" = false;
|
"files.insertFinalNewline" = true;
|
||||||
"extensions.autoUpdate" = false;
|
"files.trimFinalNewlines" = true;
|
||||||
"files.insertFinalNewline" = true;
|
"git.confirmSync" = false;
|
||||||
"files.trimFinalNewlines" = true;
|
"python.formatting.autopep8Args" = [ "--max-line-length=999" ];
|
||||||
"git.confirmSync" = false;
|
"python.showStartPage" = false;
|
||||||
"python.formatting.autopep8Args" = [ "--max-line-length=999" ];
|
"security.workspace.trust.banner" = "never";
|
||||||
"python.showStartPage" = false;
|
"security.workspace.trust.startupPrompt" = "never";
|
||||||
"security.workspace.trust.banner" = "never";
|
"security.workspace.trust.untrustedFiles" = "newWindow";
|
||||||
"security.workspace.trust.startupPrompt" = "never";
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
||||||
"security.workspace.trust.untrustedFiles" = "newWindow";
|
"terminal.integrated.fontFamily" = "DejaVuSansMono Nerd Font Mono";
|
||||||
"terminal.external.linuxExec" = "x-terminal-emulator";
|
"terminal.integrated.fontSize" = 16;
|
||||||
"terminal.integrated.fontFamily" = "DejaVuSansMono Nerd Font Mono";
|
"terminal.integrated.showExitAlert" = false;
|
||||||
"terminal.integrated.fontSize" = 16;
|
"update.mode" = "none";
|
||||||
"terminal.integrated.showExitAlert" = false;
|
"update.showReleaseNotes" = false;
|
||||||
"update.mode" = "none";
|
"window.menuBarVisibility" = "hidden";
|
||||||
"update.showReleaseNotes" = false;
|
"workbench.startupEditor" = "none";
|
||||||
"window.menuBarVisibility" = "hidden";
|
"terminal.integrated.profiles.linux"."bash" = {
|
||||||
"workbench.startupEditor" = "none";
|
"path" = "bash";
|
||||||
"terminal.integrated.profiles.linux"."bash" = {
|
"args" = [ "-c" "unset SHLVL; bash" ];
|
||||||
"path" = "bash";
|
|
||||||
"args" = [ "-c" "unset SHLVL; bash" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.etc."vscode-keybindings.json".text = builtins.toJSON [
|
||||||
|
{ key = "ctrl+w"; command = "-workbench.action.terminal.killEditor"; }
|
||||||
|
{ key = "ctrl+e"; command = "-workbench.action.quickOpen"; }
|
||||||
|
{ key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; }
|
||||||
|
];
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue