Added jscs definition for JavaScript

This commit is contained in:
Michael Robinson 2015-05-21 00:56:29 +12:00
parent a4533d1769
commit 9a9314d351

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_javascript = 'jscs'
if !exists('g:formatters_javascript')
let g:formatters_javascript = ['jsbeautify_javascript']
let g:formatters_javascript = [
\ 'jsbeautify_javascript',
\ 'jscs'
\ ]
endif