Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.14 KB

Ghcid neovim plugin

Provides instant haskell error feedback inside of neovim. This should be a lot faster than running neomake with ghc-mod, and also a lot simpler. Developed and maintained by @cloudhead.

Obligatory gif

Requirements

Installation

If you're using vim-plug, then add the following line to your list of plugins:

Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }

Then run :PlugInstall.

For vundle, add the following:

Plugin 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }

Then run :PluginInstall.

Alternatively, copy the files in this folder to to your .vim directory.

Usage

:Ghcid runs ghcid inside a neovim terminal buffer and populates the quickfix list with any errors or warnings. You can call :Ghcid to toggle the window.

After every file save, the quickfix list is updated with the output of ghcid.

:GhcidKill kills the ghcid job.

If you need to pass arguments to ghcid, simply pass them to the command, for example:

:Ghcid -c cabal new-repl