Add [x/]x to select larger/smaller syntax node in Vim (#8985)

`[x` will select the larger syntax node, `]x` the smaller one. Inspired
by https://github.com/tpope/vim-unimpaired.

Release Notes:

- Added `[x` and `]x` as default keybindings in Vim mode to select
larger and smaller syntax nodes respectively.
This commit is contained in:
Thorsten Ball 2024-03-07 06:53:17 +01:00 committed by GitHub
parent 1a9387035d
commit 4238793d16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,7 +353,9 @@
"> >": "vim::Indent",
"< <": "vim::Outdent",
"ctrl-pagedown": "pane::ActivateNextItem",
"ctrl-pageup": "pane::ActivatePrevItem"
"ctrl-pageup": "pane::ActivatePrevItem",
"[ x": "editor::SelectLargerSyntaxNode",
"] x": "editor::SelectSmallerSyntaxNode"
}
},
{