mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add vscode keybinds
This commit is contained in:
parent
8d67b78f5b
commit
43daf5af38
1 changed files with 36 additions and 27 deletions
|
@ -77,11 +77,14 @@ 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"
|
|
||||||
+ "\n" + builtins.toJSON {
|
|
||||||
"editor.renderFinalNewline" = false;
|
"editor.renderFinalNewline" = false;
|
||||||
"editor.scrollBeyondLastLine" = false;
|
"editor.scrollBeyondLastLine" = false;
|
||||||
"extensions.autoCheckUpdates" = false;
|
"extensions.autoCheckUpdates" = false;
|
||||||
|
@ -108,6 +111,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
virtualisation.docker = { enable = true; enableOnBoot = false; };
|
virtualisation.docker = { enable = true; enableOnBoot = false; };
|
||||||
|
|
Loading…
Reference in a new issue