Merge pull request #158 from cmcginty/yapf-textwidth
Support custom line lengths with yapf Python formatter.
This commit is contained in:
commit
aa977617ba
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user