Sublime Forum

ST4 unable to find LSP-prettier

#1

macOS 15.5. I need to find LSP-prettier package using Package Control: Install Package. Many other LSP packages are listed as available. Please verify LSP-prettier is available and how I might get it to appear in Package Control.

0 Likes

#2

Hi @slferris. I am not aware that there is an ‘LSP-prettier package’ (others may correct me on this). I’m not even sure that an LSP would make sense, as prettier is not a language - it’s a code formatter for a number of languages.

If you are looking for packages to pretty-print your code, you might want to consider these. I personally use the first one:

Note that each of these have dependancies, so make sure you follow the instructions

0 Likes

#3

Various language servers leverage prettier to drive “Format Document” functionality.

1 Like

#4

Thanks for your reply. I didn’t make clear that the package I’m looking for is supposed to be available on Sublime Text for web development. Many LSP packages are available there, but not the one I need, LSP-prettier.

0 Likes

#5

A LSP-prettier helper package most likely doesn’t exist, because prettier is no language server. Document formatting is just one of many functionalities language server protocol specifies.

0 Likes