Skip to content

Cmp shows me every possible keyword match instead of the object ones #2222

@ManuGraiph

Description

@ManuGraiph

Hi!

I'm new to cmp, so, maybe i'm doing something wrong in the config or similar. I installed nvim-cmp yesterday, but the behaviour is kinda unexpected.. when i get a suggestion for an object, cmp shows me all methods matching the current text but for ALL the classes/objects, not only for the one in the current position.

Example..

Here i'm getting the suggestions for a QWidget, and i'm getting not only the widget methods but also numpy/pytorch methods, other custom functions, etc.

Image

What i was expecting was, basically, a plugin that gave me the dir() of the object, but i'm getting just random suggestions for all objects, classes, etc.

Any idea how to change/fix this?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions