Skip to content
Discussion options

You must be logged in to vote

Is it possible to create mappings in any way with mini.ai's treesitter spec to work like the following plugin below https://github.com/aaronik/treewalker.nvim

Basically to sum up the functionality of this plugin, we can move up and down the tree and swap nodes.

'mini.ai' is about textobjects, not movements or swaps. The best it can do here is to define specific textobjects with gen_spec.treesitter() and use g[ and g] to go to the edge of current a textobject. You can also create custom mappings with move_cursor() to move with "next" or "last" search method to go to next or last textobject.

Swapping can be achieved with exchange operator from 'mini.operators'.

I also had one more questi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
question Further information is requested mini.ai mini.extra mini.diff
2 participants