on master help sign in
Add eglot instruction to Emacs section of README (#169)
commit3d34065ad4f6f6a5164c04ff16573d2d4dabc1ac authorJacek Generowicz <jacg@my-post-office.net> dateWed 16 Oct 2019, 16:56 (7 years ago) parent23ff249
1 file changed+20−1
README.md+20−1
README.md+20−1
@@ -72,7 +72,17 @@ marketplace](https://marketplace.visualstudio.com/items?itemName=DigitalAssetHol
7272
7373### Using with Emacs
7474
75−If you don't already have [MELPA](https://melpa.org/#/) package installation configured, visit MELPA [getting started](https://melpa.org/#/getting-started) page to get set up. Then, install [`use-package`](https://melpa.org/#/use-package). Finally, add the following lines to your `.emacs`.
75+If you don't already have [MELPA](https://melpa.org/#/) package installation configured, visit MELPA [getting started](https://melpa.org/#/getting-started) page to get set up. Then, install [`use-package`](https://melpa.org/#/use-package).
76+
77+Now you have a choice of two different Emacs packages which can be used to communicate with the `ghcide` LSP server:
78+
79++ `lsp-ui`
80++ `eglot`
81+
82+In each case, you can enable support by adding the shown lines to your `.emacs`:
83+
84+#### lsp-ui
85+
7686```elisp
7787;; LSP
7888(use-package flycheck
@@ -98,6 +108,15 @@ If you don't already have [MELPA](https://melpa.org/#/) package installation con
98108)
99109```
100110
111+#### eglot
112+
113+````elisp
114+(use-package eglot
115+ :ensure t
116+ :config
117+ (add-to-list 'eglot-server-programs '(haskell-mode . ("ghcide" "--lsp"))))
118+````
119+
101120### Using with Vim/Neovim
102121
103122#### LanguageClient-neovim