diff options
Diffstat (limited to 'after/ftplugin')
-rw-r--r-- | after/ftplugin/javascript.vim | 2 | ||||
-rw-r--r-- | after/ftplugin/javascriptreact.vim | 2 | ||||
-rw-r--r-- | after/ftplugin/tsx.vim | 2 | ||||
-rw-r--r-- | after/ftplugin/typescriptreact.vim | 2 |
4 files changed, 4 insertions, 4 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 diff --git a/after/ftplugin/javascriptreact.vim b/after/ftplugin/javascriptreact.vim index e423f0ed..ab847072 100644 --- a/after/ftplugin/javascriptreact.vim +++ b/after/ftplugin/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/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 diff --git a/after/ftplugin/typescriptreact.vim b/after/ftplugin/typescriptreact.vim index 223f77c5..3d850291 100644 --- a/after/ftplugin/typescriptreact.vim +++ b/after/ftplugin/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 |