Skip to content

[mini.ai] Incremental selection #323

Answered by echasnovski
dpetka2001 asked this question in Q&A
Discussion options

You must be logged in to vote

How could I incrementally select the 2 inner {} objects? With the cursor in neovim/nvim-lspconfig if I do va} it selects the region spec of nvim-lspconfig. I would like to increment the selection to also include the region with lsp_lines spec. Is that possible?

Any 'mini.ai' textobject supports that by repeating it. More detailed: any application of textobject searches it so that to contain current selection. When you press v is selects current character. Then pressing a} searches for "around }" which contains current selection (single character). Pressing a} again will search for a} which contains current selection, and so on. This can also be done with [count] in Visual and Operator-p…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dpetka2001
Comment options

@echasnovski
Comment options

@dpetka2001
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants