CKolkey / ts-node-action

Neovim Plugin for running functions on nodes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggest: apply = on multiline actions

unphased opened this issue · comments

I noticed for split actions the new lines are not indented properly. I think this can be addressed by applying = reflow on all multiline replacements? Won't that work?

Great plugin concept by the way. It's extremely powerful and helps showcase what treesitter can really do.

Separately from this I'm hoping to contribute a toggle action for js/ts to convert a template string expression into regular strings and vice versa. Something you couldn't dare attempt with regexes!

OK i found that there is a format option so for some reason it maybe isnt working or not set for the lua expansion... still looking up where the default action definition is...

Update: seems like = is just broken in my nvim init lua and i didnt notice until now.

Anyhow this is gonna be awesome as i'll be able to replace multiple plugins, treesj and switch.vim and text-case, possibly even more, with this, while still gaining the ability to implement even more powerful changes.

I love being a rubber duck :)