rbeautify as a beautifier for ruby

This commit is contained in:
veelenga 2014-12-09 12:17:30 +02:00
parent 3038a4e3b9
commit 85924b0f5f

View File

@ -57,3 +57,8 @@ if !exists("g:formatprg_json") | let g:formatprg_json = "js-beautify" | endif
if !exists("g:formatprg_args_expr_json") && !exists("g:formatprg_args_json") if !exists("g:formatprg_args_expr_json") && !exists("g:formatprg_args_json")
let g:formatprg_args_expr_json = '"-f - -".(&expandtab ? "s ".&shiftwidth : "t")' let g:formatprg_args_expr_json = '"-f - -".(&expandtab ? "s ".&shiftwidth : "t")'
endif endif
if !exists("g:formatprg_ruby") | let g:formatprg_ruby = "rbeautify" | endif
if !exists("g:formatprg_args_expr_ruby") && !exists("g:formatprg_args_ruby")
let g:formatprg_args_expr_ruby = '(&expandtab ? "-s" : "-t").(&shiftwidth ? " -c ".&shiftwidth : "")'
endif