File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -443,22 +443,20 @@ This will install `eglot` and enable it by default in `haskell-mode`.
443
443
To configure `haskell-language-server` we use the `eglot-workspace-configuration` variable.
444
444
With `M-x eglot-show-workspace-configuration` you can see the JSON that `eglot` will send to `haskell-language-server`.
445
445
See <https://joaotavora.github.io/eglot/#Customizing-Eglot> for more information.
446
- As an example, the setting below will disable the `stan` plugin.
446
+ As an example, the setting below will disable the `stan` plugin and use `fourmolu` for formatting :
447
447
448
448
` ` ` emacs-lisp
449
449
(use-package eglot
450
450
:ensure t
451
451
:config
452
- (add-hook 'haskell-mode-hook 'eglot-ensure)
452
+ (add-hook 'haskell-mode-hook 'eglot-ensure) ; start eglot automatically in haskell projects
453
453
:config
454
454
(setq-default eglot-workspace-configuration
455
- '((haskell
456
- (plugin
457
- (stan
458
- (globalOn . :json-false)))))) ;; disable stan
455
+ '(:haskell (:plugin (:stan (:globalOn :json-false)) ; disable stan
456
+ :formattingProvider "fourmolu"))) ; use fourmolu instead of ormolu
459
457
:custom
460
- (eglot-autoshutdown t) ;; shutdown language server after closing last file
461
- (eglot-confirm-server-initiated-edits nil) ;; allow edits without confirmation
458
+ (eglot-autoshutdown t) ; shutdown language server after closing last file
459
+ (eglot-confirm-server-initiated-edits nil) ; allow edits without confirmation
462
460
)
463
461
` ` `
464
462
You can’t perform that action at this time.
0 commit comments