summaryrefslogtreecommitdiffstats
path: root/after/indent
diff options
context:
space:
mode:
Diffstat (limited to 'after/indent')
-rw-r--r--after/indent/javascript.vim2
-rw-r--r--after/indent/javascriptreact.vim2
-rw-r--r--after/indent/tsx.vim2
-rw-r--r--after/indent/typescriptreact.vim2
4 files changed, 4 insertions, 4 deletions
diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim
index 370e12d4..dd280edb 100644
--- a/after/indent/javascript.vim
+++ b/after/indent/javascript.vim
@@ -45,7 +45,7 @@ function GetJavascriptGraphQLIndent()
endfunction
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 indent file
diff --git a/after/indent/javascriptreact.vim b/after/indent/javascriptreact.vim
index e423f0ed..ab847072 100644
--- a/after/indent/javascriptreact.vim
+++ b/after/indent/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/indent/tsx.vim b/after/indent/tsx.vim
index 084cac57..13312c03 100644
--- a/after/indent/tsx.vim
+++ b/after/indent/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 indent file
diff --git a/after/indent/typescriptreact.vim b/after/indent/typescriptreact.vim
index 223f77c5..3d850291 100644
--- a/after/indent/typescriptreact.vim
+++ b/after/indent/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