Skip to content

Commit 2ffaffe

Browse files
pennychasejneira
andauthored
Updated Sublime Text configuration information (#2656)
Co-authored-by: Javier Neira <[email protected]>
1 parent 0745939 commit 2ffaffe

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

docs/configuration.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -236,29 +236,24 @@ Configuration is done via the "Haskell" section of "Settings".
236236

237237
### Sublime Text
238238

239-
- Install [LSP](https://packagecontrol.io/packages/LSP) using [Package Control](https://packagecontrol.io/)
240-
- From Sublime Text, go to Preferences and search for LSP Settings
241-
- Paste in these settings. Make sure to change the command path to your `haskell-language-server-wrapper`
239+
Install [LSP](https://packagecontrol.io/packages/LSP) using [Package Control](https://packagecontrol.io/).
240+
241+
Open `Preferences > Package Settings > LSP > Settings` and add the following "haskell-language-server" client configuration to the "clients" key:
242242

243243
```json
244244
{
245-
"clients": {
246-
"haskell-language-server": {
247-
"command": ["haskell-language-server-wrapper", "--lsp"],
248-
"scopes": ["source.haskell"],
249-
"syntaxes": ["Packages/Haskell/Haskell.sublime-syntax"],
250-
"languageId": "haskell"
245+
"clients": {
246+
"haskell-language-server": {
247+
"enabled": true,
248+
"command": ["haskell-language-server-wrapper", "--lsp"],
249+
"selector": "source.haskell"
250+
}
251251
}
252-
}
253252
}
254-
```
255253
256-
Now open a Haskell project with Sublime Text and enable Language Server in the project.
257-
You should have these features available:
254+
```
258255

259-
1. Errors are underlined in red
260-
2. LSP: Show Diagnostics will show a list of hints and errors
261-
3. LSP: Format Document will prettify the file
256+
See [the Sublime Text LSP documentation](https://lsp.sublimetext.io) for information on configuring the client. In particular, you can add a "settings" key to the "haskell-language-server" setting to configure specific HLS plugins as described elsewhere in these docs.
262257

263258
### Vim or Neovim
264259

0 commit comments

Comments
 (0)