Skip to content

Commit

Permalink
add instructions on setting up static-ls with sublime text
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaschisholm committed Oct 12, 2024
1 parent ff67c97 commit 333dc54
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,25 @@ You can technically use any LSP compliant client - for a generic one we generall
}
```
(Note `haskell.serverExecutablePath` should be the path to your binary).

### Sublime Text

1. Install [Sublime Text LSP](https://lsp.sublimetext.io/) using [Sublime Text Package Manager](https://packagecontrol.io/installation).

2. Follow the [client configuration instructions](https://lsp.sublimetext.io/client_configuration/) to configure static-ls to launch when you open a Haskell file. You will need to add a new client:

```
{
"clients": {
"static_ls": {
"enabled": true,
"command": ["static-ls"],
"selector": "source.haskell",
},
},
}
```

(Note `"command"` should point to your static-ls binary).

3. Some helpful LSP troubleshooting information can be found [here](https://lsp.sublimetext.io/troubleshooting/)

0 comments on commit 333dc54

Please sign in to comment.