mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
added auto configuration of VIM setting -> fixes #52
This commit is contained in:
@@ -24,6 +24,10 @@ if g:jedi#auto_initialization
|
||||
endif
|
||||
end
|
||||
|
||||
if g:jedi#auto_vim_configuration
|
||||
setlocal completeopt=menuone,longest,preview
|
||||
end
|
||||
|
||||
if g:jedi#popup_on_dot
|
||||
if stridx(&completeopt, 'longest') > -1
|
||||
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
|
||||
|
||||
Reference in New Issue
Block a user