Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saep/nvim-hs-ghcid
Ghcid integration plugin for nvim-hs
https://github.com/saep/nvim-hs-ghcid
ghcid haskell neovim nvim-hs plugin
Last synced: 24 days ago
JSON representation
Ghcid integration plugin for nvim-hs
- Host: GitHub
- URL: https://github.com/saep/nvim-hs-ghcid
- Owner: saep
- License: other
- Created: 2015-09-14T18:07:56.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T22:02:57.000Z (almost 2 years ago)
- Last Synced: 2024-04-25T10:02:12.620Z (7 months ago)
- Topics: ghcid, haskell, neovim, nvim-hs, plugin
- Language: Haskell
- Size: 29.3 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim-hs-ghcid
Ghcid integration plugin for [`nvim-hs`](https://github.com/neovimhaskell/nvim-hs).
This plugin fills the quickfix list with location of compiler errors and warnings. Warnings are only added to the quickfix list if no errors are present.
# Disclaimer
I don't know if anyone uses this plugin, but I (saep) have not been using it for years. I usually compile it and test it shortly if it stops compiling on stackage, but that's about it. It can still be a useful template to write your own plugin as it is as complicated as it gets for a plugin.
If you want to have a development environment to program haskell in, try [haskell-language-server](https://github.com/haskell/haskell-language-server) which handles different compiler versions and has far more features.
# Installation
You need [stack](https://github.com/commercialhaskell/stack) for the automatic compilation and starting of the plugin to work.
Then add the plugin and its dependency to your `neovim` config file (Example uses [vim-plug](https://github.com/junegunn/vim-plug)):
```viml
Plug 'neovimhaskell/nvim-hs.vim'
Plug 'saep/nvim-hs-ghcid'
```
# Usage> :GhcidStart
To initialize a Ghcid session which will fill the quickfix list on errors/warnings. If you add a bang, it will not ask you for the configuration and uses the last saved configuration for the project or guesses a configuration.
> :GhcidStop
Stop the Ghcid session for the project in which the current file resides.
> :GhcidRestart
Same as `:GhcidStop` followed by `:GhcidStart!`.