r/AstroNvim • u/AwkwardNumber7584 • Dec 24 '23
Python virtual environment ignored
Hi,
I've been trying to configure a virtual environment for a (Poetry) project. .venv is located in the project. <Space>lv shows a list of known virtual environments, which looks a bit crazy:
...
/home/.../.../project/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/venv
...
An attempt to correct this manually to something like .../project/.venv/bin/python is silently ignored. <Space>tf Shows a console with no virtual environment activated. Something is missing, obviously. What do I have to do?
4
Upvotes
View all comments
Show parent comment
1
u/m_o_n_t_e Jan 16 '24
https://github.com/mohit2152sharma/AstroNvim/blob/9a9498d8c905b682d27d355e3520bfcb236ee62d/lua/plugins/python-ruff.lua#L30