Skip to content

lsp symbol search show context #2695

@hesxenon

Description

@hesxenon

Is your feature request related to a problem? Please describe.
When structuring code around modules instead of uniquely named functions it's common to have multiple functions with the same name. Not being able to tell what the enclosing scope of the symbol is makes it harder than necessary to navigate.

Describe the solution you'd like
The same as vscode or ionide: display the enclosing scope next to the suggested symbol. E.g. given a function add in a Post namespace the suggestion could look like add (Post) or something alike.

Describe alternatives you've considered
Checking how lsp servers send suggestions, but since vscode uses the same lsp server as my nvim instance that should not be where the problem is.

Additional context
I think ionide-vim already does this, but IIRC they don't offer a telescope integration 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to performance, inner workings or existent features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions