From 3e808594923495103aa38a7ff2b6b6d1f24d8104 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 31 Aug 2023 00:46:15 +0800 Subject: Try mucomplete with jedi-vim --- .vim/after/plugin/jedi.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .vim/after/plugin/jedi.vim (limited to '.vim/after/plugin/jedi.vim') diff --git a/.vim/after/plugin/jedi.vim b/.vim/after/plugin/jedi.vim new file mode 100644 index 0000000..4e0f062 --- /dev/null +++ b/.vim/after/plugin/jedi.vim @@ -0,0 +1,19 @@ +let g:jedi#auto_initialization = 0 +let g:jedi#auto_vim_configuration = 0 +let g:jedi#show_call_signatures = 1 + +function! s:on_python_filetype() abort + packadd jedi-vim + + setlocal omnifunc=jedi#completions + + nnoremap rn :call jedi#rename() + nnoremap gd :call jedi#goto() + nnoremap gr :call jedi#usages() + nnoremap gy :call jedi#goto_stubs() + nnoremap K :call jedi#show_documentation() + + call jedi#configure_call_signatures() +endfunction + +autocmd FileType python call s:on_python_filetype() -- cgit v1.2.3