on master help sign in
hie-core: Add instructions for Vim (#2793)
commit710f48bade5570bc160ec0409b84f7e72a016d12 authorStefan Matting <smatting@users.noreply.github.com> dateFri 6 Sep 2019, 15:30 (7 years ago) parent0fab62c
1 file changed+16
README.md+16
README.md+16
@@ -86,3 +86,19 @@ If you don't already have [MELPA](https://melpa.org/#/) package installation con
8686 ;;(setq lsp-log-io t)
8787)
8888```
89+
90+### Using with Vim/Neovim
91+
92+Install [vim-lsp](https://github.com/prabirshrestha/vim-lsp).
93+
94+Add this to your vim config:
95+
96+```vim
97+au User lsp_setup call lsp#register_server({
98+ \ 'name': 'hie-core',
99+ \ 'cmd': {server_info->['/your/path/to/hie-core', '--lsp']},
100+ \ 'whitelist': ['haskell'],
101+ \ })
102+```
103+
104+To verify it works move your cursor over a symbol and run `:LspHover`.