summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/javascript.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/javascript.vim')
-rw-r--r--after/ftplugin/javascript.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim
index 663e2d8a..a590e11d 100644
--- a/after/ftplugin/javascript.vim
+++ b/after/ftplugin/javascript.vim
@@ -14,7 +14,7 @@ else
endif
endif
-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)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim ftplugin file