emacs-lsp / lsp-haskell

lsp-mode :heart: haskell
https://emacs-lsp.github.io/lsp-haskell
GNU General Public License v3.0
236 stars 62 forks source link

How to configure it to format on save? #113

Closed vagifverdi closed 3 years ago

vagifverdi commented 3 years ago

Is there a way to configure HLS to format on save (using ormolu or formolu) in emacs? I know it can be done in VsCode.

michaelpj commented 3 years ago

I think this is a generic client issue, so it's lsp-mode's responsibility. I see they have some settings that look like they might be relevant ((customize-group lsp)), maybe try those and otherwise open an issue there?