mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
rename methods
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
" functions that call python code
|
" functions that call python code
|
||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
function! jedi#goto()
|
function! jedi#goto_assignments()
|
||||||
Python jedi_vim.goto()
|
Python jedi_vim.goto()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! jedi#get_definition()
|
function! jedi#goto_definitions()
|
||||||
Python jedi_vim.goto(is_definition=True)
|
Python jedi_vim.goto(is_definition=True)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ if g:jedi#auto_initialization
|
|||||||
endif
|
endif
|
||||||
execute "inoremap <buffer>".g:jedi#completions_command." <C-X><C-O>"
|
execute "inoremap <buffer>".g:jedi#completions_command." <C-X><C-O>"
|
||||||
|
|
||||||
" goto / get_definition / related_names
|
" goto / get_definition / usages
|
||||||
execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto()<CR>"
|
execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto_assignments()<CR>"
|
||||||
execute "noremap <buffer>".g:jedi#goto_definitions_command." :call jedi#get_definition()<CR>"
|
execute "noremap <buffer>".g:jedi#goto_definitions_command." :call jedi#goto_definitions()<CR>"
|
||||||
execute "noremap <buffer>".g:jedi#usages_command." :call jedi#related_names()<CR>"
|
execute "noremap <buffer>".g:jedi#usages_command." :call jedi#usages()<CR>"
|
||||||
" rename
|
" rename
|
||||||
execute "noremap <buffer>".g:jedi#rename_command." :call jedi#rename()<CR>"
|
execute "noremap <buffer>".g:jedi#rename_command." :call jedi#rename()<CR>"
|
||||||
" documentation/pydoc
|
" documentation/pydoc
|
||||||
|
|||||||
Reference in New Issue
Block a user