Vim support for Liquid Typing
Step 1. Add the following to your .vimrc
Bundle 'scrooloose/syntastic'
Bundle 'panagosg7/vim-annotations'
let g:vim_annotations_offset = '/.liquid/'
Step 2. Copy the following files
cp syntax/haskell.vim ~/.vimrc/syntax/haskell.vim
cp syntax/liquid.vim ~/.vimrc/bundle/syntastic/syntax_checkers/haskell/liquid.vim
:SyntasticCheck liquid
runs liquidhaskell on the current buffer.
-
Warnings will be displayed in the usual error buffer.
-
Inferred Types will be displayed when
<F1>
is pressed over an identifier.
You can configure the checker in various ways in your .vimrc
.
- To run after each save, for all Haskell files, add:
let g:syntastic_mode_map = { 'mode': 'active' }
let g:syntastic_haskell_checkers = ['hdevtools', 'hlint', 'liquid']
- To pass extra options to liquidhaskell add:
let g:syntastic_haskell_liquid_args = "--diff"