summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/cabal.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/cabal.vim')
-rw-r--r--after/ftplugin/cabal.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim
new file mode 100644
index 00000000..a4f042ba
--- /dev/null
+++ b/after/ftplugin/cabal.vim
@@ -0,0 +1,8 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
+setlocal comments=s1fl:{-,mb:-,ex:-},:--
+setlocal formatoptions-=cro formatoptions+=j
+setlocal iskeyword+=-,.,*
+setlocal commentstring=--\ %s
+
+endif