CKolkey / ts-node-action

Neovim Plugin for running functions on nodes.
359 stars 20 forks source link

fix: toggle_operator() support for languages that target a childless node #31

Closed alexpw closed 1 year ago

alexpw commented 1 year ago

Issue reported here: https://github.com/CKolkey/ts-node-action/issues/29#issuecomment-1462864159

This fixes toggle_operator() in Julia and any language that act on the equivalent of an operator node that has no children.

Includes a short julia spec that tests this case.

CKolkey commented 1 year ago

You just have to add julia to the treesitter install step to fix this

CKolkey commented 1 year ago

Awesome :D