diff options
Diffstat (limited to 'indent/cabal.vim')
-rw-r--r-- | indent/cabal.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/cabal.vim b/indent/cabal.vim index 1698e16d..e65eee71 100644 --- a/indent/cabal.vim +++ b/indent/cabal.vim @@ -1,11 +1,6 @@ -let s:base = expand("<sfile>:h:h") -let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" } -let files = filter(globpath(&rtp, 'indent/cabal.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 " indentation for cabal " @@ -38,5 +33,3 @@ function! GetCabalIndent() return match(l:prevline, '\S') endif endfunction - -endif |