[mini.ai] Functions as an alternative text-object for tags #2107
Closed
igorlfs
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for sharing! This is more or less recommended way to handle more complex tags. But instead of globally overriding
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
mini.ai ships many textobjects, including a tag one, which can be used with
t. However, the default object does not cover every edge case. For the longest time, I've been using a custom object, taken from Lazyvim. But it also misses some even crazier edge cases.Today I was investigating this situation and realized that a better solution can be achieved with nvim-treesitter-textobjects. It just so happens that tags (
elements) are "tagged" as functions. Which means that if you're usingIt will also work flawlessly with tags! Still getting used to it, but it's a creative "workaround" that I felt I had to share!
Beta Was this translation helpful? Give feedback.
All reactions