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.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/tsx.vim b/after/ftplugin/tsx.vim
index 7cca61cf..96b5515a 100644
--- a/after/ftplugin/tsx.vim
+++ b/after/ftplugin/tsx.vim
@@ -1,4 +1,4 @@
-if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
+if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
" modified from html.vim
" For matchit plugin