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

@@ -304,6 +304,8 @@ def goto(mode="goto"):
definitions = script.goto_definitions()
elif mode == "assignment":
definitions = script.goto_assignments()
elif mode == "stubs":
definitions = script.goto_assignments(follow_imports=True, only_stubs=True)
if not definitions:
echo_highlight("Couldn't find any definitions for this.")