From 1f1e821192d25d630587aa9d53bd8d428fb09c4d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 18 Oct 2015 16:08:51 +0200 Subject: Change haskell provider to neovimhaskell/haskell-vim, closes #75 --- ftplugin/haskell.vim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ftplugin/haskell.vim (limited to 'ftplugin/haskell.vim') diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim new file mode 100644 index 00000000..3e9c43f8 --- /dev/null +++ b/ftplugin/haskell.vim @@ -0,0 +1,25 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + +if exists("g:loaded_haskellvim_haskell") + finish +endif + +let g:loaded_haskellvim_haskell = 1 + +function! haskell#makeModuleCommentBlock() + let l:commenttmpl = [ '{-|', + \ 'Module : ', + \ 'Description : ', + \ 'Copyright : ', + \ 'License : ', + \ 'Maintainer : ', + \ 'Stability : ', + \ 'Portability : ', + \ '-}'] + + exe "normal ggO" . join(l:commenttmpl, "\n") +endfunction + +command! -buffer -nargs=0 HaskellAddModuleComment call haskell#makeModuleCommentBlock() + +endif -- cgit v1.2.3