lukas-reineke / lsp-format.nvim

A wrapper around Neovims native LSP formatting.
559 stars 27 forks source link

Does lsp-format supports `shfmt` & `stylua` ? #68

Closed lucazz closed 1 year ago

lucazz commented 1 year ago

Hello there, everyone!

This is a fantastic plug-in, btw. Thanks for writing that.

I was just wondering how one would wire in formatters like shfmt and stylua.

I use Mason to install those and these are the only ones missing from my setup at this moment.

lukas-reineke commented 1 year ago

You need to wrap those formatters in an LSP.

I personally use https://github.com/mattn/efm-langserver

And there is https://github.com/jose-elias-alvarez/null-ls.nvim