diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index 020bfe578d..3ce9865d00 100644 --- a/assets/keymaps/vim.json +++ b/assets/keymaps/vim.json @@ -234,6 +234,8 @@ "displayLines": true } ], + "g ]": "editor::GoToDiagnostic", + "g [": "editor::GoToPrevDiagnostic", "shift-h": "vim::WindowTop", "shift-m": "vim::WindowMiddle", "shift-l": "vim::WindowBottom", @@ -367,6 +369,15 @@ "< <": "vim::Outdent", "ctrl-pagedown": "pane::ActivateNextItem", "ctrl-pageup": "pane::ActivatePrevItem", + // tree-sitter related commands + "[ x": "editor::SelectLargerSyntaxNode", + "] x": "editor::SelectSmallerSyntaxNode" + } + }, + { + "context": "Editor && vim_mode == visual && vim_operator == none && !VimWaiting", + "bindings": { + // tree-sitter related commands "[ x": "editor::SelectLargerSyntaxNode", "] x": "editor::SelectSmallerSyntaxNode" } @@ -532,6 +543,18 @@ ] } }, + { + "context": "Editor && vim_mode == normal", + "bindings": { + "g c c": "editor::ToggleComments" + } + }, + { + "context": "Editor && vim_mode == visual", + "bindings": { + "g c": "editor::ToggleComments" + } + }, { "context": "Editor && vim_mode == insert", "bindings": {