Merge pull request #52 from faceleg/multiple-formatters

Added jscs definition for JavaScript
This commit is contained in:
Chiel 2015-05-27 10:47:30 +02:00
commit fbf04df1a6

View File

@ -63,8 +63,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