Skip to content

Commit

Permalink
Fix goto_assignments config (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger authored and gatesn committed Dec 3, 2018
1 parent ab3e5ea commit d7fb817
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyls/plugins/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

@hookimpl
def pyls_definitions(config, document, position):
params = {k: v for k, v in config.plugin_settings('jedi_definition').items() if v is not None}
definitions = document.jedi_script(position).goto_assignments(**params)
settings = config.plugin_settings('jedi_definition')
definitions = document.jedi_script(position).goto_assignments(
follow_imports=settings.get('follow_imports', False),
follow_builtin_imports=settings.get('follow_builtin_imports', False))

definitions = [
d for d in definitions
Expand Down

0 comments on commit d7fb817

Please sign in to comment.