summaryrefslogtreecommitdiffstats
path: root/after/indent/jsx.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/indent/jsx.vim')
-rw-r--r--after/indent/jsx.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim
index fcd7b5ad..394f20b7 100644
--- a/after/indent/jsx.vim
+++ b/after/indent/jsx.vim
@@ -1,4 +1,6 @@
-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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file
@@ -29,5 +31,3 @@ endfunction
let &cpo = s:keepcpo
unlet s:keepcpo
-
-endif