Skip to content
Discussion options

You must be logged in to vote

Reading https://www.gnu.org/software/emacs/manual/html_node/eglot/Project_002dspecific-configuration.html#Examples it seems the correct way is this:

(setq-default eglot-workspace-configuration '(:haskell (:formattingProvider "fourmolu")))

(or M-x add-dir-local-variable to make it project-specific). Then running M-x eglot-show-workspace-configuration I see

{
  "haskell": {
    "formattingProvider": "fourmolu"
  }
}

I'm not sure how to introspect what HLS actually parsed it as, but after setting that I get four spaces and leading commas in lists, whereas without it I got two spaces and trailing commas.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wolverian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants