Merge pull request #158 from cmcginty/yapf-textwidth

Support custom line lengths with yapf Python formatter.
This commit is contained in:
Chiel ten Brinke 2016-12-05 11:15:27 +01:00 committed by GitHub
commit aa977617ba

View File

@ -42,7 +42,7 @@ if !exists('g:formatter_yapf_style')
let g:formatter_yapf_style = 'pep8' let g:formatter_yapf_style = 'pep8'
endif endif
if !exists('g:formatdef_yapf') if !exists('g:formatdef_yapf')
let g:formatdef_yapf = "'yapf --style=\"{based_on_style:'.g:formatter_yapf_style.',indent_width:'.&shiftwidth.'}\" -l '.a:firstline.'-'.a:lastline" let g:formatdef_yapf = "'yapf --style=\"{based_on_style:'.g:formatter_yapf_style.',indent_width:'.&shiftwidth.',column_limit:'.&textwidth.'}\" -l '.a:firstline.'-'.a:lastline"
endif endif
if !exists('g:formatters_python') if !exists('g:formatters_python')