Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set python path to active virtualenv #100

Closed
mikepqr opened this issue Apr 16, 2017 · 2 comments
Closed

Set python path to active virtualenv #100

mikepqr opened this issue Apr 16, 2017 · 2 comments

Comments

@mikepqr
Copy link
Contributor

mikepqr commented Apr 16, 2017

Is it possible to do something like

let g:completor_python_binary = `which python`

to ensure completor and jedi use the currently active virtualenv for completion?

[Sorry, I realize this is possibly a very simple vim question rather than a subtle completor question!]

@maralla
Copy link
Owner

maralla commented Apr 17, 2017

If jedi is installed in your current virtualenv you can just do:

let g:completor_python_binary = 'python'

or do not set this variable at all.

@mikepqr mikepqr closed this as completed Apr 19, 2017
@thiswind
Copy link

great!! it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants