summaryrefslogtreecommitdiffstats
path: root/ftplugin/haskell.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-07-18 23:22:55 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2015-07-18 23:22:55 +0200
commitcf1e53bc39c96b9f5586a68efa118a13c615da13 (patch)
treeeb6c96a71098df7fc2a38df4606f32a3bfcc925e /ftplugin/haskell.vim
parent92ab75408df8bff49bb29e113b3cc159d1ac3105 (diff)
downloadvim-polyglot-cf1e53bc39c96b9f5586a68efa118a13c615da13.tar.gz
vim-polyglot-cf1e53bc39c96b9f5586a68efa118a13c615da13.zip
Changed haskell provider to raichoo/haskell-vim, closes #63
Diffstat (limited to 'ftplugin/haskell.vim')
-rw-r--r--ftplugin/haskell.vim25
1 files changed, 25 insertions, 0 deletions
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