mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-23 06:17:14 +08:00
jedi#auto_vim_configuration might not have been set before loading plugin. Therefore check if it was set.
This commit is contained in:
1 parent
d3fadd54c7
commit
bf96f7d611
4 files changed
+11
-12
No files matched your search
@@ -36,12 +36,12 @@ if g:jedi#auto_initialization
|
||||
if g:jedi#auto_close_doc
|
||||
" close preview if its still open after insert
|
||||
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
|
||||
end
|
||||
end
|
||||
endif
|
||||
endif
|
||||
|
||||
if g:jedi#auto_vim_configuration
|
||||
setlocal completeopt=menuone,longest,preview
|
||||
if len(mapcheck('<C-c>', 'i')) == 0
|
||||
inoremap <C-c> <ESC>
|
||||
end
|
||||
end
|
||||
endif
|
||||
endif
|
||||
Reference in new issue
Block a user