mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
if completeopt = longest is not set, change the default behaviour of the popup menu, fixes #32
This commit is contained in:
@@ -25,7 +25,11 @@ if g:jedi#auto_initialization
|
|||||||
end
|
end
|
||||||
|
|
||||||
if g:jedi#popup_on_dot
|
if g:jedi#popup_on_dot
|
||||||
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<C-X>\<C-O>" : ""<CR>
|
if stridx(&completeopt, 'longest') > -1
|
||||||
|
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
|
||||||
|
else
|
||||||
|
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if g:jedi#auto_close_doc
|
if g:jedi#auto_close_doc
|
||||||
|
|||||||
2
jedi
2
jedi
Submodule jedi updated: 800f6eb84b...2d75f509b7
Reference in New Issue
Block a user