Skip to content

Inconsistent behavior for "import" keyword in Python #775

@sassanh

Description

@sassanh

Issue

With g:jedi#smart_auto_mappings set to 1 sometimes when I write

from datetime |CURSOR HERE|

it automatically adds import and I end up with

from datetime import |CURSOR HERE|

but sometimes it opens a completion menu and I should select import (it's the only option.)

Any idea how can I make it consistent? (I prefer first case.)

I'm using nvim-completion-manager
This is the issue I opened there for reference: roxma/nvim-completion-manager#189

Steps to reproduce

Output of “:verbose JediDebugInfo”

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