diff options
Diffstat (limited to 'syntax/unison.vim')
-rw-r--r-- | syntax/unison.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/unison.vim b/syntax/unison.vim index 90ca9c49..f069b99b 100644 --- a/syntax/unison.vim +++ b/syntax/unison.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, 'syntax/unison.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('unison', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'unison') == -1 " Vim syntax file, adapted from Haskell file by John Williams <jrw@pobox.com> " @@ -161,5 +156,3 @@ endif let b:current_syntax = "unison" " Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim - -endif |