File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ This is *very* early stage software.
29
29
- [ Building] ( #building )
30
30
- [ Install via cabal] ( #install-via-cabal )
31
31
- [ Install specific GHC Version] ( #install-specific-ghc-version )
32
+ - [ HLS LSP Configuration] ( #hls-lsp-configuration )
32
33
- [ Project Configuration] ( #project-configuration )
33
34
- [ Editor Integration] ( #editor-integration )
34
35
- [ VS Code] ( #using-haskell-language-server-with-vs-code )
@@ -253,6 +254,34 @@ If your desired ghc has been found, you use it to install haskell-language-serve
253
254
./cabal-hls-install data
254
255
```
255
256
257
+ ## HLS LSP Configuration
258
+
259
+ haskell-language-server supports some forms of configuration.
260
+
261
+ ### Formatting providers
262
+ By default, haskell-language-server is compiled with support for several different formatters.
263
+
264
+ These include
265
+ * ` floskell `
266
+ * ` fourmolu `
267
+ * ` ormolu `
268
+ * ` stylish-haskell `
269
+ * ` brittany ` (if compiled with AGPL)
270
+
271
+ To choose one of them, you need to include the name of the one you want to use
272
+ as the value for the ` formattingProvider ` key in your LSP configuration like so:
273
+ ``` json
274
+ {
275
+ ...
276
+ "haskell" : {
277
+ ...
278
+ "formattingProvider" : " fourmolu"
279
+ ...
280
+ }
281
+ ...
282
+ }
283
+ ```
284
+
256
285
## Project Configuration
257
286
258
287
** For a full explanation of possible configurations, refer to [ hie-bios/README] ( https://github.com/mpickering/hie-bios/blob/master/README.md ) .**
You can’t perform that action at this time.
0 commit comments