From 346594de48c9be1641415e2ac3454979f21f82af Mon Sep 17 00:00:00 2001 From: vanya Date: Thu, 7 Jul 2016 13:35:56 +0300 Subject: [PATCH] JSX support by default --- plugin/defaults.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/defaults.vim b/plugin/defaults.vim index c01dd4f..1bf6571 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -140,12 +140,12 @@ if !exists('g:formatdef_jsbeautify_javascript') elseif filereadable(expand('~/.jsbeautifyrc')) let g:formatdef_jsbeautify_javascript = '"js-beautify"' else - let g:formatdef_jsbeautify_javascript = '"js-beautify -f - -".(&expandtab ? "s ".shiftwidth() : "t").(&textwidth ? " -w ".&textwidth : "")' + let g:formatdef_jsbeautify_javascript = '"js-beautify -X -f - -".(&expandtab ? "s ".shiftwidth() : "t").(&textwidth ? " -w ".&textwidth : "")' endif endif if !exists('g:formatdef_pyjsbeautify_javascript') - let g:formatdef_pyjsbeautify_javascript = '"js-beautify -".(&expandtab ? "s ".shiftwidth() : "t").(&textwidth ? " -w ".&textwidth : "")." -"' + let g:formatdef_pyjsbeautify_javascript = '"js-beautify -X -".(&expandtab ? "s ".shiftwidth() : "t").(&textwidth ? " -w ".&textwidth : "")." -"' endif if !exists('g:formatdef_jscs')