summaryrefslogtreecommitdiffstats
path: root/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/cabal.vim8
-rw-r--r--after/ftplugin/haskell.vim7
2 files changed, 15 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
diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim
new file mode 100644
index 00000000..387ffe71
--- /dev/null
+++ b/after/ftplugin/haskell.vim
@@ -0,0 +1,7 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
+setlocal comments=s1fl:{-,mb:-,ex:-},:--
+setlocal formatoptions-=cro formatoptions+=j
+setlocal iskeyword+='
+
+endif