nvim-treesitter-textobjects
nvim-treesitter-textobjects copied to clipboard
How to target the object and include the before text?
For example, in jsx, the each attribute of element are split by <space>.
But Treesitter doesn't include the separator(space).
When I delete this textobj(test={true}), the `
Then I need to delete that space manually.
So, is there any to target the attribute, but also include the space(one or more) before?
and here's my config now.
; jsx attributes
(jsx_self_closing_element attribute: (_) @attribute.outer)
(jsx_element open_tag: (_ attribute: (_) @attribute.outer))