g:jedi#quickfix_window_height

This commit adds an option g:jedi#quickfix_window_height, with the
    default value 10 (as this is the default value for :copen)
This commit is contained in:
Marcin Szamotulski
2013-03-17 13:47:17 +00:00
parent 165dea0a2c
commit 422ad483c1
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ endfunction
function! jedi#add_goto_window() function! jedi#add_goto_window()
set lazyredraw set lazyredraw
cclose cclose
execute 'belowright copen 3' execute 'belowright copen '.g:jedi#quickfix_window_height
set nolazyredraw set nolazyredraw
if g:jedi#use_tabs_not_buffers == 1 if g:jedi#use_tabs_not_buffers == 1
map <buffer> <CR> :call jedi#goto_window_on_enter()<CR> map <buffer> <CR> :call jedi#goto_window_on_enter()<CR>

View File

@@ -35,7 +35,8 @@ let s:settings = {
\ 'show_function_definition': 1, \ 'show_function_definition': 1,
\ 'function_definition_escape': "'≡'", \ 'function_definition_escape': "'≡'",
\ 'auto_close_doc': 1, \ 'auto_close_doc': 1,
\ 'popup_select_first': 1 \ 'popup_select_first': 1,
\ 'quickfix_window_height': 10
\ } \ }
for [key, val] in items(s:settings) for [key, val] in items(s:settings)