Skip to content

Commit 030da6b

Browse files
committed
Add more configuration pointers, tweak section on supporting new editors
1 parent 3845726 commit 030da6b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ Install from
422422
[the VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=haskell.haskell), or manually from the repository [vscode-haskell](https://github.com/haskell/vscode-haskell).
423423
The `haskell-language-server` and `haskell-language-server-wrapper` binaries will be automatically downloaded on an ad-hoc basis, but if you have them already installed on your PATH then it will just use them instead.
424424

425+
Configuration is done via the "Haskell" section of "Settings".
426+
425427
### Using Haskell Language Server with Sublime Text
426428

427429
- Install [LSP](https://packagecontrol.io/packages/LSP) using [Package Control](https://packagecontrol.io/)
@@ -493,7 +495,7 @@ and issuing a `:PlugInstall` command within Neovim or Vim.
493495
As an alternative to using [vim-plug](https://github.com/junegunn/vim-plug) shown above, clone [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim)
494496
into `~/.vim/pack/XXX/start/`, where `XXX` is just a name for your "plugin suite".
495497

496-
##### Sample `~/.vimrc`
498+
##### Configuration and sample `~/.vimrc` sections
497499

498500
```vim
499501
set rtp+=~/.vim/pack/XXX/start/LanguageClient-neovim
@@ -534,6 +536,9 @@ it may also be helpful to also specify root markers:
534536
let g:LanguageClient_rootMarkers = ['*.cabal', 'stack.yaml']
535537
```
536538

539+
Further configuration can be done by pointing the [`g:LanguageClient_settingsPath`](https://github.com/autozimu/LanguageClient-neovim/blob/0e5c9546bfddbaa2b01e5056389c25aefc8bf989/doc/LanguageClient.txt#L221)
540+
variable to the file in which you want to keep your LSP settings.
541+
537542
### Using Haskell Language Server with Atom
538543

539544
Install the two Atom packages [atom-ide-ui](https://atom.io/packages/atom-ide-ui) and [haskell](https://atom.io/packages/haskell),
@@ -681,7 +686,7 @@ To do every time you changed code and want to test it:
681686

682687
Adding support for new editors is fairly easy if the editor already has good support for generic LSP-based extensions.
683688
In that case, there will likely be an editor-specific support system for this (like `lsp-mode` for Emacs).
684-
This will typically include instructions for creating a new language server client.
689+
This will typically provide instructions for how to support new languages.
685690

686-
Additionally, you should expose a way for the user to set the server's [configuration options](#configuring-haskell-language-server), and
691+
In some cases you may need to write a small bit of additional client support, or expose a way for the user to set the server's [configuration options](#configuring-haskell-language-server) and
687692
for them to configure how the server is started.

0 commit comments

Comments
 (0)