diff options
Diffstat (limited to '')
-rw-r--r-- | after/syntax/javascript.vim | 2 | ||||
-rw-r--r-- | after/syntax/javascriptreact.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index 1ebcf38c..00c4b079 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.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) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file diff --git a/after/syntax/javascriptreact.vim b/after/syntax/javascriptreact.vim index e423f0ed..ab847072 100644 --- a/after/syntax/javascriptreact.vim +++ b/after/syntax/javascriptreact.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) source <sfile>:h/javascript.vim |