summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/tsx.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/tsx.vim')
-rw-r--r--after/ftplugin/tsx.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/ftplugin/tsx.vim b/after/ftplugin/tsx.vim
index 96b5515a..2b35ec46 100644
--- a/after/ftplugin/tsx.vim
+++ b/after/ftplugin/tsx.vim
@@ -1,4 +1,6 @@
-if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
+if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
+ finish
+endif
" modified from html.vim
" For matchit plugin
@@ -28,5 +30,3 @@ augroup jsx_comment
augroup end
setlocal suffixesadd+=.tsx
-
-endif