diff --git a/modules/coding/vscode.nix b/modules/coding/vscode.nix index 14f3de1..ab4033a 100644 --- a/modules/coding/vscode.nix +++ b/modules/coding/vscode.nix @@ -33,7 +33,32 @@ in { "extensions.autoUpdate" = false; # Startup "workbench.startupEditor" = "none"; + # Vim + "editor.lineNumbers" = "relative"; }; + keybindings = [ + # Navigating Autosuggest and Quick Open entries + { + "key" = "ctrl+j"; + "command" = "selectNextSuggestion"; + "when" = "suggestWidgetVisible"; + } + { + "key" = "ctrl+k"; + "command" = "selectPrevSuggestion"; + "when" = "suggestWidgetVisible"; + } + { + "key" = "ctrl+j"; + "command" = "workbench.action.quickOpenSelectNext"; + "when" = "inQuickOpen"; + } + { + "key" = "ctrl+k"; + "command" = "workbench.action.quickOpenSelectPrevious"; + "when" = "inQuickOpen"; + } + ]; }; };