Add a goto_stubs command

This commit is contained in:
Dave Halter
2019-06-16 09:39:50 +02:00
parent 23c14f6826
commit 9c9a513aaf
4 changed files with 15 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ let s:default_settings = {
\ 'goto_command': "'<leader>d'",
\ 'goto_assignments_command': "'<leader>g'",
\ 'goto_definitions_command': "''",
\ 'goto_stubs_command': "'<leader>s'",
\ 'completions_command': "'<C-Space>'",
\ 'call_signatures_command': "'<leader>n'",
\ 'usages_command': "'<leader>n'",
@@ -287,6 +288,10 @@ function! jedi#goto_definitions() abort
PythonJedi jedi_vim.goto(mode="definition")
endfunction
function! jedi#goto_stubs() abort
PythonJedi jedi_vim.goto(mode="stubs")
endfunction
function! jedi#usages() abort
call jedi#remove_usages()
PythonJedi jedi_vim.usages()