diff options
author | Guangxiong Lin <[email protected]> | 2023-08-31 00:46:15 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-08-31 00:46:15 +0800 |
commit | 3e808594923495103aa38a7ff2b6b6d1f24d8104 (patch) | |
tree | 9c1b91f4e8a71b5b00688b80341c348c71f436a7 /.vim/after/plugin/jedi.vim | |
parent | eb09180f592fa82f6a606b9706910dc65f1fbfdc (diff) | |
download | dotfiles-3e808594923495103aa38a7ff2b6b6d1f24d8104.tar.gz dotfiles-3e808594923495103aa38a7ff2b6b6d1f24d8104.tar.bz2 dotfiles-3e808594923495103aa38a7ff2b6b6d1f24d8104.zip |
Try mucomplete with jedi-vim
Diffstat (limited to '.vim/after/plugin/jedi.vim')
-rw-r--r-- | .vim/after/plugin/jedi.vim | 19 |
1 files changed, 19 insertions, 0 deletions
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 <silent> <buffer> <localleader>rn :call jedi#rename()<cr> + nnoremap <silent> <buffer> gd :call jedi#goto()<cr> + nnoremap <silent> <buffer> gr :call jedi#usages()<cr> + nnoremap <silent> <buffer> gy :call jedi#goto_stubs()<cr> + nnoremap <silent> <buffer> K :call jedi#show_documentation()<cr> + + call jedi#configure_call_signatures() +endfunction + +autocmd FileType python call s:on_python_filetype() |