summaryrefslogtreecommitdiffstats
path: root/ftplugin/typescript.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/typescript.vim')
-rw-r--r--ftplugin/typescript.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index fa14101b..4eece320 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/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, 'ftplugin/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
" set Vi-incompatible, compiler and commentstring
@@ -89,5 +84,3 @@ let g:tagbar_type_typescript = {
if get(g:, 'typescript_use_builtin_tagbar_defs', 1)
let g:tagbar_type_typescript.deffile = expand('<sfile>:p:h:h') . '/ctags/typescript.ctags'
endif
-
-endif