Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
euanpound opened this issue Apr 15, 2024 · 0 comments
Open
1 task done

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

euanpound opened this issue Apr 15, 2024 · 0 comments
Labels
enhancement New feature or request P2 Not a priority. PRs welcome

Comments

@euanpound
Copy link

Did you check existing requests?

  • I have searched the existing issues

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.

@euanpound euanpound added the enhancement New feature or request label Apr 15, 2024
@stevearc stevearc added the P2 Not a priority. PRs welcome label May 6, 2024
marcusbfs added a commit to marcusbfs/conform.nvim that referenced this issue May 9, 2024
stevearc added a commit that referenced this issue May 10, 2024
* feat: add ormolu formatter for Haskell (#377)

* add ormolu references to README.md and doc/conform.txt

* revert wrong auto typo fix by codespell

* update meta field in the formatter

* doc: typo

---------

Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Not a priority. PRs welcome
Projects
None yet
Development

No branches or pull requests

2 participants