diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/javascript.vim | 2 | ||||
-rw-r--r-- | after/syntax/javascriptreact.vim | 2 | ||||
-rw-r--r-- | after/syntax/jsx_pretty.vim | 2 | ||||
-rw-r--r-- | after/syntax/tsx.vim | 2 | ||||
-rw-r--r-- | after/syntax/typescriptreact.vim | 2 |
5 files changed, 5 insertions, 5 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 diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index d0c2644d..9f14e4d4 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.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) let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) diff --git a/after/syntax/tsx.vim b/after/syntax/tsx.vim index 36854168..34a6005e 100644 --- a/after/syntax/tsx.vim +++ b/after/syntax/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) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file diff --git a/after/syntax/typescriptreact.vim b/after/syntax/typescriptreact.vim index 223f77c5..3d850291 100644 --- a/after/syntax/typescriptreact.vim +++ b/after/syntax/typescriptreact.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/tsx.vim |