You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using VS Code with Nix](#using-vs-code-with-nix)
38
39
-[Using HIE with Sublime Text](#using-hie-with-sublime-text)
39
40
-[Using HIE with Vim or Neovim](#using-hie-with-vim-or-neovim)
40
-
-[vim-plug](#vim-plug)
41
-
-[Vim 8.0](#vim-80)
42
-
-[Sample `~/.vimrc`](#sample-vimrc)
41
+
-[Coc](#Coc)
42
+
-[LanguageClient-neovim](#LanguageClient-neovim)
43
+
-[vim-plug](#vim-plug)
44
+
-[Clone the LanguageClient-neovim repo](#clone-the-languageclient-neovim-repo)
45
+
-[Sample `~/.vimrc`](#sample-vimrc)
43
46
-[Using HIE with Atom](#using-hie-with-atom)
44
47
-[Using HIE with Emacs](#using-hie-with-emacs)
45
48
-[Using HIE with Spacemacs](#using-hie-with-spacemacs)
@@ -368,9 +371,40 @@ Now open a Haskell project with Sublime Text. You should have these features ava
368
371
369
372
### Using HIE with Vim or Neovim
370
373
371
-
As above, make sure HIE is installed. These instructions are for using the [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim) client.
374
+
As above, make sure HIE is installed.
375
+
Then you can use [Coc](https://github.com/neoclide/coc.nvim), [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim)
376
+
or any other vim Langauge server protocol client.
377
+
Coc is recommend since it is the only complete LSP implementation for Vim and Neovim and offers snippets and floating documentation out of the box.
and issuing a `:PlugInstall` command within Neovim or Vim.
385
419
386
-
#### Clone the LanguageClient-neovim repo
420
+
#####Clone the LanguageClient-neovim repo
387
421
As an alternative to using [vim-plug](https://github.com/junegunn/vim-plug) shown above, clone [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim)
388
422
into `~/.vim/pack/XXX/start/`, where `XXX` is just a name for your "plugin suite".
389
423
390
-
#### Sample `~/.vimrc`
424
+
#####Sample `~/.vimrc`
391
425
392
426
```vim
393
427
set rtp+=~/.vim/pack/XXX/start/LanguageClient-neovim
@@ -625,7 +659,12 @@ These builds have a dependency on [homebrew](https://brew.sh)'s `gmp` library. I
625
659
### cannot satisfy -package-id \<package\>
626
660
627
661
#### Is \<package\> base-x?
628
-
Make sure that you are running the correct version of hie for your version of ghc, or check out hie-wrapper.
662
+
Make sure that the GHC version of HIE matches the one of the project. After that run
663
+
```
664
+
$ cabal configure
665
+
```
666
+
667
+
and then restart HIE (e.g. by restarting your editor).
629
668
630
669
#### Is there a hash (#) after \<package\>?
631
670
Delete any `.ghc.environment*` files in your project root and try again. (At the time of writing, cabal new-style projects are not supported with ghc-mod)
0 commit comments