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/typescript.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim
index 275073fa..8c2254d6 100644
--- a/after/indent/javascript.vim
+++ b/after/indent/javascript.vim
@@ -1,4 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1
+if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
finish
endif
diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim
index 4e281b22..acc283f0 100644
--- a/after/indent/typescript.vim
+++ b/after/indent/typescript.vim
@@ -1,4 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1
+if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
finish
endif