prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 161 forks source link

jedi completion #67

Open htzh opened 8 years ago

htzh commented 8 years ago

In ptpython jedi completion works great. However in pyvim it does not seem to do much although it seems to work well with the import statement (so at least I know that jedi is working). As I understand it pyvim uses ptpython's completer class, which is designed for use in REPL. So I wonder if this is to be expected or it has something to do with my setup.

What is the intention here by passing the globals of the editor to the completer? https://github.com/jonathanslenders/pyvim/blob/34bdd9baf6d51cc13d144ed9761413f4bc7af007/pyvim/completion.py#L50

        if location.endswith('.py') and editor.enable_jedi:
            completer = PythonCompleter(lambda: globals(), lambda: {})
sfantu commented 7 years ago

auto completion doesn't work for me either. Sorry it seems it works but only for some commands.