Add variable to control the height of the buffer showing documentation

This commit is contained in:
petobens
2015-03-12 12:23:12 -03:00
committed by Daniel Hahler
parent e5038cc9fa
commit 4095d0efef
2 changed files with 7 additions and 3 deletions

View File

@@ -233,8 +233,11 @@ function! jedi#show_documentation()
setlocal nomodified
setlocal filetype=rst
if l:doc_lines > 30 " max lines for plugin
let l:doc_lines = 30
if !exists('g:jedi#max_doc_height')
let g:jedi#max_doc_height = 30
endif
if l:doc_lines > g:jedi#max_doc_height " max lines for plugin
let l:doc_lines = g:jedi#max_doc_height
endif
execute "resize ".l:doc_lines