Skip to content

ucsd-progsys/liquid-types.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

liquid-types.vim

Vim support for Liquid Typing

Install

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

Run

  • :SyntasticCheck liquid runs liquidhaskell on the current buffer.

View

  1. Warnings will be displayed in the usual error buffer.

  2. Inferred Types will be displayed when <F1> is pressed over an identifier.

Configure

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"

About

Vim support for Liquid Types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published