Move max_doc_height default to s:default_settings

This commit is contained in:
Daniel Hahler
2015-05-02 10:41:31 +02:00
parent 4095d0efef
commit 65c06553fd

View File

@@ -28,6 +28,7 @@ let s:default_settings = {
\ 'show_call_signatures': 1,
\ 'call_signature_escape': "'=`='",
\ 'auto_close_doc': 1,
\ 'max_doc_height': 30,
\ 'popup_select_first': 1,
\ 'quickfix_window_height': 10,
\ 'completions_enabled': 1,
@@ -233,9 +234,6 @@ function! jedi#show_documentation()
setlocal nomodified
setlocal filetype=rst
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