Permalink
Browse files

set formatprg for pointfree

  • Loading branch information...
1 parent 3fafd59 commit d57bd3b58e029164819b4c51a7fe6ae3d35090bb @dag committed Sep 1, 2012
Showing with 5 additions and 2 deletions.
  1. +4 −1 autoload/vim2hs/haskell/editing.vim
  2. +1 −1 ftplugin/haskell.vim
@@ -100,7 +100,10 @@ function! vim2hs#haskell#editing#keywords() " {{{
endfunction " }}}
-function! vim2hs#haskell#editing#comments() " {{{
+function! vim2hs#haskell#editing#formatting() " {{{
+ if executable('pointfree')
+ setlocal formatprg=xargs\ pointfree
+ endif
setlocal comments=s1:{-,mb:-,ex:-},:--
setlocal commentstring=--%s
setlocal formatoptions+=croql1
@@ -1,6 +1,6 @@
call vim2hs#haskell#editing#includes()
call vim2hs#haskell#editing#keywords()
-call vim2hs#haskell#editing#comments()
+call vim2hs#haskell#editing#formatting()
call vim2hs#haskell#editing#folding()

0 comments on commit d57bd3b

Please sign in to comment.