diff --git a/docs/extras/lang/python.md b/docs/extras/lang/python.md index 987e02032..83a5cb31c 100644 --- a/docs/extras/lang/python.md +++ b/docs/extras/lang/python.md @@ -338,6 +338,46 @@ opts = nil +## [venv-selector.nvim](https://github.com/linux-cultist/venv-selector.nvim/tree/regexp) + + + + + +```lua +opts = { + settings = { + options = { + notify_user_on_venv_activation = true, + }, + }, +} +``` +```lua +{ + "linux-cultist/venv-selector.nvim", + branch = "regexp", -- Use this branch for the new version + cmd = "VenvSelect", + enabled = function() + return LazyVim.has("telescope.nvim") + end, + opts = { + settings = { + options = { + notify_user_on_venv_activation = true, + }, + }, + }, + -- Call config for python files and load the cached venv automatically + ft = "python", + keys = { { "cv", ":VenvSelect", desc = "Select VirtualEnv", ft = "python" } }, +} +``` + + + + + ## [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) _(optional)_