abecodes/tabout.nvim

Not working on [ ]

KadoBOT opened this issue · 2 comments

Hi, the plugin seems to be working fine with the exception of the [ and ]. I assume this is conflicting with another plugin and not an issue with tabout, so I'm wondering if you have any idea what might be causing this?

Hi @KadoBOT,

yes and no ;) It depends on the language you are using and how treesitter is interpreting the node you are in.

As example in a .js file:

xxx[|] <-- won't be able to tabout

var x = "xxx[|]" <-- tabout of [ as well as "

I plan on a rewrite to make it possible to set also the global treesitter node and others to be checked for tabout possibilities, but no ETA on that right now.

For now it is most likely that this limitation causes your issue. You can double check with the example above if this is the case.

Thanks, @abecodes for the info, that was it. I test your example and it worked perfectly. 👍🏻