mfussenegger / nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
GNU General Public License v3.0
492 stars 46 forks source link

Detect virtualenv by probing for venv, .venv, env and .env #121

Closed mfussenegger closed 7 months ago

mfussenegger commented 7 months ago

Extends the automatic python path detection by probing for some common virtualenv locations.

Tries all - cwd/lcwd and lsp clients' root_dir as possible project roots and uses the first that exists.