rbeautify as a beautifier for ruby
This commit is contained in:
parent
3038a4e3b9
commit
85924b0f5f
@ -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")
|
||||
let g:formatprg_args_expr_json = '"-f - -".(&expandtab ? "s ".&shiftwidth : "t")'
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user