Merge branch 'raindev-stylish-haskell'

This commit is contained in:
Chiel ten Brinke 2015-12-08 09:30:49 +01:00
commit 2842842ec9
2 changed files with 12 additions and 0 deletions

View File

@ -142,6 +142,9 @@ Part of the Dart SDK (make sure it is on your PATH). See https://www.dartlang.or
* `perltidy` for __Perl__. * `perltidy` for __Perl__.
It can be installed from CPAN `cpanm Perl::Tidy` . See https://metacpan.org/pod/Perl::Tidy and http://perltidy.sourceforge.net/ for more info. It can be installed from CPAN `cpanm Perl::Tidy` . See https://metacpan.org/pod/Perl::Tidy and http://perltidy.sourceforge.net/ for more info.
* `stylish-haskell` for __Haskell__
It can be installed using [`cabal`](https://www.haskell.org/cabal/) build tool. Installation instructions are available at https://github.com/jaspervdj/stylish-haskell#installation
How can I change the behaviour of formatters, or add one myself? How can I change the behaviour of formatters, or add one myself?
---------------------------------------------------------------- ----------------------------------------------------------------
If you need a formatter that is not among the defaults, or if you are not satisfied with the default formatting behaviour that is provided by vim-autoformat, you can define it yourself. If you need a formatter that is not among the defaults, or if you are not satisfied with the default formatting behaviour that is provided by vim-autoformat, you can define it yourself.

View File

@ -225,3 +225,12 @@ endif
if !exists('g:formatters_perl') if !exists('g:formatters_perl')
let g:formatters_perl = ['perltidy'] let g:formatters_perl = ['perltidy']
endif endif
" Haskell
if !exists('g:formatdef_stylish_haskell')
let g:formatdef_stylish_haskell = '"stylish-haskell"'
endif
if !exists('g:formatters_haskell')
let g:formatters_haskell = ['stylish_haskell']
endif