summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/ansible.vim1
-rw-r--r--ftplugin/cabal.vim9
-rw-r--r--ftplugin/elixir.vim6
-rw-r--r--ftplugin/haskell.vim20
-rw-r--r--ftplugin/nix.vim9
-rw-r--r--ftplugin/purescript.vim2
6 files changed, 10 insertions, 37 deletions
diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim
index e068dd3a..5f2f3f74 100644
--- a/ftplugin/ansible.vim
+++ b/ftplugin/ansible.vim
@@ -4,6 +4,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
if exists('+regexpengine') && ('&regexpengine' == 0)
setlocal regexpengine=1
endif
+set isfname+=@-@
set path+=./../templates,./../files,templates,files
endif
diff --git a/ftplugin/cabal.vim b/ftplugin/cabal.vim
deleted file mode 100644
index 5c041bd3..00000000
--- a/ftplugin/cabal.vim
+++ /dev/null
@@ -1,9 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
-
-if exists("g:loaded_haskellvim_cabal")
- finish
-endif
-
-let g:loaded_haskellvim_cabal = 1
-
-endif
diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim
index c02bff35..debaa10a 100644
--- a/ftplugin/elixir.vim
+++ b/ftplugin/elixir.vim
@@ -32,11 +32,7 @@ let &l:path =
setlocal includeexpr=elixir#util#get_filename(v:fname)
setlocal suffixesadd=.ex,.exs,.eex,.erl,.yrl,.hrl
-if empty(&formatprg)
- setlocal formatprg=mix\ format\ -
-endif
-
-let &l:define = 'def\(macro|guard|delegate\)p'
+let &l:define = 'def\(macro\|guard\|delegate\)\=p\='
silent! setlocal formatoptions-=t formatoptions+=croqlj
diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim
deleted file mode 100644
index b1028620..00000000
--- a/ftplugin/haskell.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-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#sortImports(line1, line2)
- exe a:line1 . "," . a:line2 . "sort /import\\s\\+\\(qualified\\s\\+\\)\\?/"
-endfunction
-
-function! haskell#formatImport(line1, line2)
- exec a:line1 . ",". a:line2 . "s/import\\s\\+\\([A-Z].*\\)/import \\1"
-endfunction
-
-command! -buffer -range HaskellSortImports call haskell#sortImports(<line1>, <line2>)
-command! -buffer -range HaskellFormatImport call haskell#formatImport(<line1>, <line2>)
-
-endif
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim
index 8f3cf812..52c0ee69 100644
--- a/ftplugin/nix.vim
+++ b/ftplugin/nix.vim
@@ -11,7 +11,12 @@ endif
let b:did_ftplugin = 1
-setlocal comments=:#
-setlocal commentstring=#\ %s
+setlocal
+ \ comments=:#
+ \ commentstring=#\ %s
+ \ shiftwidth=2
+ \ softtabstop=2
+ \ expandtab
+ \ iskeyword+=-
endif
diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim
index 695a4108..37951f44 100644
--- a/ftplugin/purescript.vim
+++ b/ftplugin/purescript.vim
@@ -1,6 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
-setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--
+setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--\ \|,:--
setlocal include=^import
setlocal includeexpr=printf('%s.purs',substitute(v:fname,'\\.','/','g'))