updated js-beautify formatter to use config file
This commit is contained in:
parent
e637f7862d
commit
896998c368
@ -84,7 +84,13 @@ endif
|
|||||||
|
|
||||||
" Javascript
|
" Javascript
|
||||||
if !exists('g:formatdef_jsbeautify_javascript')
|
if !exists('g:formatdef_jsbeautify_javascript')
|
||||||
let g:formatdef_jsbeautify_javascript = '"js-beautify -f - -".(&expandtab ? "s ".shiftwidth() : "t").(&textwidth ? " -w ".&textwidth : "")'
|
if filereadable('.jsbeautifyrc')
|
||||||
|
let g:formatdef_jsbeautify_javascript = '"js-beautify"'
|
||||||
|
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 : "")'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:formatdef_pyjsbeautify_javascript')
|
if !exists('g:formatdef_pyjsbeautify_javascript')
|
||||||
|
Loading…
Reference in New Issue
Block a user