Skip to content

Latest commit

 

History

History

nvim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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