Recently I had to create lots of dummy records for some unit tests. I'd create a first record, paste it several times and update the arguments.

That had me wondering: Given that neovim integrates treesitter, wouldn't it be possible to parse the copied text and apply some transformations to turn it into a snippet?

Whiped together a quick prototype (that still needs lots of work)

#neovim

Follow

@mathias looks great, i see some potential for my usecases as well.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml