aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/jedi.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-08-31 00:46:15 +0800
committerGuangxiong Lin <[email protected]>2023-08-31 00:46:15 +0800
commit3e808594923495103aa38a7ff2b6b6d1f24d8104 (patch)
tree9c1b91f4e8a71b5b00688b80341c348c71f436a7 /.vim/after/plugin/jedi.vim
parenteb09180f592fa82f6a606b9706910dc65f1fbfdc (diff)
downloaddotfiles-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.vim19
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()