Skip to content

mini.ai vs. treesitter-textobjects for treesitter keymaps #243

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

You must be logged in to vote

Probably no performance difference, but I didn't make a thorough check.

Most differences come from slightly different features:

  • You can configure search method to be more nuanced, not only similar to lookahead = true. See this help section about search methods.
  • Following previous note, there are "next"/"last" variants of textobjects (an/in/al/il). Basically, they select textobject with temporarily changed search method (next and prev respectively). Initially they were not part of 'mini.ai', but I've gotten several people describing their benefits and boy was I wrong. They are really useful especially with combination with dot-repeat. Like you can use cin' to edit inside next quotes while…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@echasnovski
Comment options

@smjonas
Comment options

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