mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
Improve 'winwidth' split option documentation
This commit is contained in:
@@ -44,6 +44,7 @@ Markus Koller (@toupeira)
|
|||||||
Justin Cheevers @justincheevers
|
Justin Cheevers @justincheevers
|
||||||
Talha Ahmed (@talha81) <talha.ahmed@gmail.com>
|
Talha Ahmed (@talha81) <talha.ahmed@gmail.com>
|
||||||
Matthew Tylee Atkinson (@matatk)
|
Matthew Tylee Atkinson (@matatk)
|
||||||
|
Pedro Ferrari (@petobens)
|
||||||
|
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ If you are a person who likes to use VIM-splits, you might want to put this in y
|
|||||||
|
|
||||||
let g:jedi#use_splits_not_buffers = "left"
|
let g:jedi#use_splits_not_buffers = "left"
|
||||||
|
|
||||||
This options could be "left", "right", "top" or "bottom". It will decide the direction where the split open.
|
This options could be "left", "right", "top", "bottom" or "winwidth". It will decide the direction where the split open.
|
||||||
|
|
||||||
Jedi automatically starts the completion, if you type a dot, e.g. ``str.``, if
|
Jedi automatically starts the completion, if you type a dot, e.g. ``str.``, if
|
||||||
you don't want this:
|
you don't want this:
|
||||||
|
|||||||
@@ -432,6 +432,11 @@ direction which you want to open a split with.
|
|||||||
Options: top, left, right, bottom or winwidth
|
Options: top, left, right, bottom or winwidth
|
||||||
Default: "" (not enabled by default)
|
Default: "" (not enabled by default)
|
||||||
|
|
||||||
|
Note: with the 'winwidth' option the window is split vertically or horizontally
|
||||||
|
depending on the width of the window relative to 'textwidth'. This essentially
|
||||||
|
means that if the window is big enough it will be split vertically but if it is
|
||||||
|
small a horizontal split happens.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
6.11. `g:jedi#force_py_version` *g:jedi#force_py_version*
|
6.11. `g:jedi#force_py_version` *g:jedi#force_py_version*
|
||||||
|
|
||||||
|
|||||||
@@ -472,8 +472,7 @@ def new_buffer(path, options=''):
|
|||||||
'bottom': 'botright split',
|
'bottom': 'botright split',
|
||||||
'winwidth': 'vs'
|
'winwidth': 'vs'
|
||||||
}
|
}
|
||||||
if user_split_option == 'winwidth' and vim.current.window.width <= 2 * int(vim_eval("&tw ? &tw : 80")):
|
if user_split_option == 'winwidth' and vim.current.window.width <= 2 * int(vim_eval("&textwidth ? &textwidth : 80")):
|
||||||
for key, value in split_options.items():
|
|
||||||
split_options['winwidth'] = 'sp'
|
split_options['winwidth'] = 'sp'
|
||||||
if user_split_option not in split_options:
|
if user_split_option not in split_options:
|
||||||
print('g:jedi#use_splits_not_buffers value is not correct, valid options are: %s' % ','.join(split_options.keys()))
|
print('g:jedi#use_splits_not_buffers value is not correct, valid options are: %s' % ','.join(split_options.keys()))
|
||||||
|
|||||||
Reference in New Issue
Block a user