parinfer-rust icon indicating copy to clipboard operation
parinfer-rust copied to clipboard

VS Code plugin

Open Immortalin opened this issue 5 years ago • 3 comments

Hi, can you add an extension for visual studio code?

Immortalin avatar Oct 25 '20 22:10 Immortalin

I'm already too backlogged with the core stuff, Vim, and Kakoune, so I can't do it. I posted it on #parinfer on the Clojurians slack in case someone else is interested. And, of course, I'd be willing to answer questions on Slack or here if you want to take this on.

eraserhd avatar Oct 26 '20 14:10 eraserhd

FYI - as of earlier this week, Calva has decent Parinfer support for VS Code.

It is not exactly Parinfer's Smart Mode, but a neat combination of Indent Mode + the Calva autoformatter. For most use cases, it feels like Smart Mode.

More information in this PR and twitter thread.

oakmac avatar Dec 04 '21 11:12 oakmac

VS Code also has a neovim extension which allows you to leverage parinfer-rust through neovim. After every keystroke it calls nvim_buf_set_text which doesn't play well with parinfer's 'smart' mode as every keystroke causes parinfer to reformat the text. This means you can't add spaces to the end of form. (E.g. can't change (foo) -> (foo ) in anticipation of eventually typing (foo bar).)

gdw2 avatar Jan 03 '23 21:01 gdw2