defaults: use tabs with javascript if noexpandtab is set
This commit is contained in:
parent
66995c00d1
commit
1dab5c1a04
@ -40,6 +40,5 @@ endif
|
||||
|
||||
if !exists("g:formatprg_javascript") | let g:formatprg_javascript = "js-beautify" | endif
|
||||
if !exists("g:formatprg_args_expr_javascript") && !exists("g:formatprg_args_javascript")
|
||||
let g:formatprg_args_expr_javascript = '"-f - -s".&shiftwidth'
|
||||
let g:formatprg_args_expr_javascript = '"-f - -".(&expandtab ? "" : "t")."s ".&shiftwidth'
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user