Jedi-vim + YCM问题
Jedi-vim + YCM issue
我对 Jedi VIM 显示的提示有疑问。这是它的样子:
Image
这是我的 .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 配置有问题。我尝试 disable/enable YCM 和 Jedi VIM 的不同选项,但它只有两种方式:要么显示两次调用签名,要么根本不显示调用签名。
请指教
YouCompleteMe 通过 JediHTTP 与 Jedi 集成。它与 jedi-vim
不兼容,因此出现了您所看到的行为。我建议卸载 jedi-vim
.
我对 Jedi VIM 显示的提示有疑问。这是它的样子: Image
这是我的 .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 配置有问题。我尝试 disable/enable YCM 和 Jedi VIM 的不同选项,但它只有两种方式:要么显示两次调用签名,要么根本不显示调用签名。
请指教
YouCompleteMe 通过 JediHTTP 与 Jedi 集成。它与 jedi-vim
不兼容,因此出现了您所看到的行为。我建议卸载 jedi-vim
.