stevearc / conform.nvim

Lightweight yet powerful formatter plugin for Neovim
MIT License
2.72k stars 142 forks source link

feature request: Haskell-Language-Server / ormolu support #377

Open euanpound opened 3 months ago

euanpound commented 3 months ago

Did you check existing requests?

Describe the feature

Some way to handle the errors ormolu sends when the code is malformed (probably something ormolu should handle on their end) or handle lsp time outs from formatting.

Provide background

Using hls leads to timeouts when the buffer has really malformed code (this is the fault of ormolu sending stdout errors). I have a habit of saving too often and at random times, basically whenever I move my head from my monitor so I get this slow-down each time. It would be nice to be able to handle these ormolu errors somehow. I just added an ormolu formatter for the time being which doesn't get rid of the errors but it does mean I can save without a timeout delay.

What is the significance of this feature?

nice to have

Additional details

If I should report an issue or feature request to the ormolu repo lmk and I won't waste peoples' time here. Or if I am doing something wrong then please correct me.