You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue where I need to install pynvim in every Python virtual environment to work seamlessly with LazyVim. Here’s a breakdown of my workflow and what I’m aiming to achieve:
Launching from Active Virtual Environment: When I start nvim with a virtual environment active, the LSP automatically uses it, and it works well. Alternatively, I can start nvim without an environment and manually select one using leader-c-v, but I must do this each time.
Using System Python in nvim: I have pynvim installed globally, so nvim functions correctly when no virtual environment is active. However, if I start nvim within a virtual environment, I must install pynvim in that environment.
What I Need:
I want the LSP in nvim to automatically use the Python environment from which nvim was launched.
I'd like nvim to default to using the system Python when not launched from a specific virtual environment.
Is there a way to configure LazyVim to meet these requirements without installing pynvim in each virtual environment?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm encountering an issue where I need to install pynvim in every Python virtual environment to work seamlessly with LazyVim. Here’s a breakdown of my workflow and what I’m aiming to achieve:
Launching from Active Virtual Environment: When I start nvim with a virtual environment active, the LSP automatically uses it, and it works well. Alternatively, I can start nvim without an environment and manually select one using leader-c-v, but I must do this each time.
Using System Python in nvim: I have pynvim installed globally, so nvim functions correctly when no virtual environment is active. However, if I start nvim within a virtual environment, I must install pynvim in that environment.
What I Need:
Is there a way to configure LazyVim to meet these requirements without installing pynvim in each virtual environment?
Beta Was this translation helpful? Give feedback.
All reactions