mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Merge pull request #402 from blueyed/add-max_doc_height
Add max_doc_height setting
This commit is contained in:
@@ -28,6 +28,7 @@ let s:default_settings = {
|
|||||||
\ 'show_call_signatures': 1,
|
\ 'show_call_signatures': 1,
|
||||||
\ 'call_signature_escape': "'=`='",
|
\ 'call_signature_escape': "'=`='",
|
||||||
\ 'auto_close_doc': 1,
|
\ 'auto_close_doc': 1,
|
||||||
|
\ 'max_doc_height': 30,
|
||||||
\ 'popup_select_first': 1,
|
\ 'popup_select_first': 1,
|
||||||
\ 'quickfix_window_height': 10,
|
\ 'quickfix_window_height': 10,
|
||||||
\ 'completions_enabled': 1,
|
\ 'completions_enabled': 1,
|
||||||
@@ -252,8 +253,8 @@ function! jedi#show_documentation()
|
|||||||
setlocal nomodified
|
setlocal nomodified
|
||||||
setlocal filetype=rst
|
setlocal filetype=rst
|
||||||
|
|
||||||
if l:doc_lines > 30 " max lines for plugin
|
if l:doc_lines > g:jedi#max_doc_height " max lines for plugin
|
||||||
let l:doc_lines = 30
|
let l:doc_lines = g:jedi#max_doc_height
|
||||||
endif
|
endif
|
||||||
execute "resize ".l:doc_lines
|
execute "resize ".l:doc_lines
|
||||||
|
|
||||||
|
|||||||
@@ -280,7 +280,8 @@ Function: `jedi#show_documentation()`
|
|||||||
Default: <K> Show pydoc documentation
|
Default: <K> Show pydoc documentation
|
||||||
|
|
||||||
This shows the pydoc documentation for the item currently under the cursor.
|
This shows the pydoc documentation for the item currently under the cursor.
|
||||||
The documentation is opened in a horizontally split buffer.
|
The documentation is opened in a horizontally split buffer. The height of this
|
||||||
|
buffer is controlled by `g:jedi#max_doc_height` (set by default to 30).
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
5.5. `g:jedi#rename_command` *g:jedi#rename_command*
|
5.5. `g:jedi#rename_command` *g:jedi#rename_command*
|
||||||
|
|||||||
Reference in New Issue
Block a user