Skip to content

Setting up mini.ai alongside nvim-treesitter-textobjects and setting up treesitter fallbacks #970

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

You must be logged in to vote

Hello!

... I can't imagine living without include_surrounding_whitespace and also selection_modes options from nvim-treesitter-textobjects. I was wondering if anyone came up with a setup that gets the best of both worlds.

Both of those options don't look like adding too much of a feature set, to be honest.

include_surrounding_whitespace might be useful, but mostly feels like an ad hoc patch that fixes the tree-sitter grammar implementation rather that the problem itself.

The selection_modes seems available in 'mini.ai' via vis_mode field of a textobject specification. But it seems to only be present for manual specifications, while gen_spec.treesitter() can not forward this information.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants