0

我对 Jedi VIM 显示的提示有疑问。这是它的样子: 图片

这是我的 .vimrc 设置:

let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"
let g:ycm_python_binary_path = "/usr/local/Cellar/python/2.7.12/bin/python"
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_list_select_completion=[]
let g:ycm_key_list_previous_completion=[]
set completeopt-=preview

" Jedi Python autocomplete
let g:ycm_filetype_specific_completion_to_disable = { 'python' : 1 }
let g:ycm_filetype_blacklist = { 'python' : 1 }

let g:jedi#show_call_signatures_delay = 1
let g:jedi#auto_initialization = 1
let g:jedi#auto_vim_configuration = 1
let g:jedi#use_tabs_not_buffers = 1
let g:jedi#popup_on_dot = 1
let g:jedi#popup_select_first = 1
let g:jedi#completions_enabled = 1
let g:jedi#show_call_signatures = "1"
let g:jedi#goto_command = "<leader>d"
let g:jedi#goto_assignments_command = "<leader>g"
let g:jedi#goto_definitions_command = ""
let g:jedi#documentation_command = "K"
let g:jedi#usages_command = "<leader>n"
let g:jedi#completions_command = "<C-Space>"
let g:jedi#rename_command = "<leader>r"
autocmd FileType python setlocal completeopt-=preview

我相信 Jedi-VIM/YCM 配置有问题。我尝试为 YCM 和 JediVIM 禁用/启用不同的选项,但它只有两种方式:要么显示两次调用签名,要么根本不显示调用签名。

请指教。

4

1 回答 1

0

YouCompleteMe 通过JediHTTP与 Jedi 集成。它与 不兼容jedi-vim,因此您看到的行为。我建议卸载jedi-vim.

于 2017-04-09T17:39:32.570 回答