summaryrefslogtreecommitdiffstats
path: root/after/indent/javascript-1.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/indent/javascript-1.vim')
-rw-r--r--after/indent/javascript-1.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/indent/javascript-1.vim b/after/indent/javascript-1.vim
index 2992e942..f56dd82a 100644
--- a/after/indent/javascript-1.vim
+++ b/after/indent/javascript-1.vim
@@ -1,9 +1,9 @@
-if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
+if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
+ finish
+endif
if get(g:, 'vim_jsx_pretty_disable_js', 0)
finish
endif
source <sfile>:h/jsx.vim
-
-endif