@@ -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": {