mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move vscode keybindings to file
This commit is contained in:
parent
23d24ca511
commit
feef47959a
2 changed files with 16 additions and 6 deletions
|
@ -98,6 +98,7 @@ with lib;
|
|||
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
||||
'';
|
||||
|
||||
environment.etc."vscode-keybindings.json".source = ./vscode-keybindings.json;
|
||||
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
||||
(
|
||||
builtins.fromJSON (builtins.readFile ./vscode-settings.json)
|
||||
|
@ -111,12 +112,6 @@ with lib;
|
|||
}
|
||||
);
|
||||
|
||||
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"; }
|
||||
];
|
||||
|
||||
boot.loader.timeout = 1;
|
||||
};
|
||||
}
|
||||
|
|
15
modules/desktop/vscode-keybindings.json
Normal file
15
modules/desktop/vscode-keybindings.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
{
|
||||
"key": "ctrl+w",
|
||||
"command": "-workbench.action.terminal.killEditor"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+e",
|
||||
"command": "-workbench.action.quickOpen"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+e",
|
||||
"command": "workbench.action.quickOpen",
|
||||
"when": "!terminalFocus"
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue