hie-core: Add instructions for Vim (#2793)

This commit is contained in:
Stefan Matting 2019-09-06 15:30:48 +02:00 committed by Gary Verhaegen
parent 0fab62ccb2
commit 710f48bade

View File

@ -86,3 +86,19 @@ If you don't already have [MELPA](https://melpa.org/#/) package installation con
;;(setq lsp-log-io t)
)
```
### Using with Vim/Neovim
Install [vim-lsp](https://github.com/prabirshrestha/vim-lsp).
Add this to your vim config:
```vim
au User lsp_setup call lsp#register_server({
\ 'name': 'hie-core',
\ 'cmd': {server_info->['/your/path/to/hie-core', '--lsp']},
\ 'whitelist': ['haskell'],
\ })
```
To verify it works move your cursor over a symbol and run `:LspHover`.