diff --git a/modules/home-manager/vscode.nix b/modules/home-manager/vscode.nix index 59b80cf..e17daa5 100644 --- a/modules/home-manager/vscode.nix +++ b/modules/home-manager/vscode.nix @@ -69,6 +69,7 @@ }; keybindings = [ + # git { key = "ctrl+alt+s"; command = "git.stageSelectedRanges"; @@ -84,6 +85,24 @@ command = "git.revertSelectedRanges"; when = "editorTextFocus && !operationInProgress && resourceScheme == 'file'"; } + + # snippet + { + key = "alt+i"; + command = "editor.action.insertSnippet"; + args = { + "snippet" = "$CURSOR_INDEX"; + }; + when = "editorTextFocus && editorHasMultipleSelections"; + } + { + key = "alt+n"; + command = "editor.action.insertSnippet"; + args = { + "snippet" = "$CURSOR_NUMBER"; + }; + when = "editorTextFocus && editorHasMultipleSelections"; + } ]; enableExtensionUpdateCheck = false;