Merge branch 'multiple-formatters' of https://github.com/Chiel92/vim-autoformat into multiple-formatters

This commit is contained in:
Chiel92 2015-05-30 11:59:15 +02:00
commit bb004752d3

View File

@ -67,8 +67,12 @@ endif
" Javascript
let g:formatdef_jsbeautify_javascript = '"js-beautify -f - -".(&expandtab ? "s ".&shiftwidth : "t").(&textwidth ? " -w ".&textwidth : "")'
let g:formatdef_jscs = '"jscs -x"'
if !exists('g:formatters_javascript')
let g:formatters_javascript = ['jsbeautify_javascript']
let g:formatters_javascript = [
\ 'jsbeautify_javascript',
\ 'jscs'
\ ]
endif