use new --language cli argument

This commit is contained in:
Alan Hamlett 2017-02-20 16:23:13 -08:00
parent 2e427cbb3c
commit 25c4dedd66
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ let s:VERSION = '4.0.13'
let cmd = cmd + ['--write']
endif
if !empty(&syntax)
let cmd = cmd + ['--alternate-language', &syntax]
let cmd = cmd + ['--language', &syntax]
else
if !empty(&filetype)
let cmd = cmd + ['--alternate-language', &filetype]
let cmd = cmd + ['--language', &filetype]
endif
endif
"let cmd = cmd + ['--verbose']