Skip to content

Commit b253143

Browse files
authored
Merge branch 'master' into dependabot/github_actions/dot-github/actions/setup-build/haskell-actions/setup-2.8.2
2 parents fe28331 + e2acc1c commit b253143

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/contributing/contributing.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,21 @@ When using VS Code you can set up each project to use a specific HLS executable:
159159
```
160160

161161
#### Configuring Emacs
162-
There are several ways to configure the HLS server path:
162+
There are several ways to configure the HLS server path, each of which depends on your choice of language server provider (e.g., emacs-lsp or eglot). If using emacs-lsp, you need to configure the variable `lsp-haskell-server-path`:
163163
- `M-x customize-group<RET>lsp-haskell<RET>Lsp Haskell Server Path`
164164
- Evaluate `(setq lsp-haskell-server-path "/path/to/your/hacked/haskell-language-server")`
165165
- Create a file `.dir-locals.el` with the following content:
166166
```lisp
167167
((haskell-mode . ((lsp-haskell-server-path . "/path/to/your/hacked/haskell-language-server"))))
168168
```
169169

170+
If using eglot, you need to configure the variable `eglot-server-programs`, which is an alist associating major-modes to executables:
171+
- Evaluate `(setf (alist-get 'haskell-mode eglot-server-programs) ("/path/to/your/hacked/haskell-language-server" "--lsp"))`
172+
- Create a file `.dir-locals.el` with the following content:
173+
```lisp
174+
((haskell-mode . ((eglot-server-programs . (('haskell-mode . ("/path/to/your/hacked/haskell-language-server" "--lsp")))))))
175+
```
176+
170177
### Rebuild HLS
171178
- With Stack: `stack build haskell-language-server:exe:haskell-language-server`
172179
- With Cabal: `cabal build exe:haskell-language-server`

0 commit comments

Comments
 (0)