nvim-treesitter-textobjects
nvim-treesitter-textobjects copied to clipboard
Allow to select from the start of the line on some nodes
Needs https://github.com/nvim-treesitter/nvim-treesitter/pull/1953
This is an alternative solution for the problem described at https://github.com/nvim-treesitter/nvim-treesitter-textobjects/pull/70.
I think auto_expand doesn't make sense as a global option. It would also select parameters line-wise. Would be better as a per-textobject option.
that will only be for parameters that don't have a trailing comma, but I get it, better to have per-mapping/object options (would also be useful for the lookahead/lookbehind options). Currently, we don't have a way to do that, I'll open an issue with suggestions for a way to define those options.
I think this PR is really old at this stage, Please reopen rebased if still relevant