diff options
Diffstat (limited to 'compiler/typescript.vim')
-rw-r--r-- | compiler/typescript.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/typescript.vim b/compiler/typescript.vim index de3f1f0a..d004226c 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.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, 'compiler/typescript.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if exists('current_compiler') finish @@ -28,5 +23,3 @@ endif let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m - -endif |