-
Notifications
You must be signed in to change notification settings - Fork 0
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
Starting from the base environment creates problems with the omnicomplete. #4
Comments
Is this plug-in, as its name suggests, more about activating or switching an environment?
This seems from a user's point of view important for omni-completion using the libraries of the current environment. Could the environment on entering Vim be auto-detected to adapt the (missing) Vim settings? |
Yes, exactly. It change the runtime. When you conda activate you don't just change the internal Vim,
In reality the setting is not missing, it is set to a certain value. What I have observed is that some plugins don't seem to like when the runtime is changed dynamically, (see e.g. yegappan/lsp#338). Anyways, PR:S are welcome :) |
Thank you very much!
I hesitated writing
Could you just quickly tell which command you expected to show it, but didn't? |
Eh, I actually don't remember. One should add some Regarding the startup, I have seen that one could try to use a Anyway, I just look at the code and there is room for refactoring. |
Btw, by looking at |
In this discussion I didn't grasp why the counterpart for conda needed to be inside the environment before. It seems that the (https://github.com/Coacher/vim-virtualenv/) plug-in solved a similar problem without that need. Maybe @Coacher could give a hint if this is really necessary. |
Oh that is interesting! Thanks for pointing it out! I think that conda is more complex than virtualenv, and perhaps there are some nuances that I failed to grasp. This was one of my first plugins, and as said there is also room for refactoring other than improvements room. PRs that include that or any other improvements are welcome! :) |
Changing
sys.path
as done before makes omnicomplete (<c-x><c-o>
) to crash, in-spite everything seems to be ok.Perhaps is a problem connected to Vim
sys.path
but it should be investigated.Temporary solution is to avoid starting Vim from the base environment.
The text was updated successfully, but these errors were encountered: