diff options
Diffstat (limited to 'after/indent/javascriptreact.vim')
-rw-r--r-- | after/indent/javascriptreact.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/after/indent/javascriptreact.vim b/after/indent/javascriptreact.vim index 265415d0..be2ea1fc 100644 --- a/after/indent/javascriptreact.vim +++ b/after/indent/javascriptreact.vim @@ -1,5 +1,5 @@ -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 source <sfile>:h/jsx.vim - -endif |