Sublime Forum

Prettierd integration

#1

Has anyone got an example of prettierd working in ST?

jsprettier works well but there are noticable delays on even small files.

1 Like

#2

No, but it could be possible to make an LSP plugin with it. I will try to at least.

1 Like

#3

Full disclosure, I haven’t even tried yet - the documentation suggests you should be able to plug prettierd into the executable path in place of prettier in your settings file and I was hoping someone had a recipe for that / confirmed they’d done it for ST. I’ll take a plugin solution any time though :slight_smile:

As it is I’ve stopped doing format on save automatically and just manually sweep through changed files just before completing my PRs

0 Likes

#4
0 Likes

#5

Maybe disabled this https://github.com/jonlabelle/SublimeJsPrettier/blob/2ff0bf26126c4824c4a579606e14076f4f66dd19/JsPrettier.sublime-settings#L205-L231

0 Likes

#6

Thanks to all the answers and alternatives here.

I’ve abandoned the development VM I had setup as I couldn’t get going with any of the alternative suggestions and there seemed to be other non-Sublime issues in my setup I couldn’t get to the bottom of.

I’m rebuilding on a dedicated laptop and will try again when that’s done.

0 Likes