feat(python): switch to regexp branch for a rewrite the venv selector plugin (#3301)

It has eliminated many bugs and allows users to easily add their searches, if the plugin doesn't find them automatically.
This commit is contained in:
Rabin Adhikari 2024-06-05 20:18:49 +05:45 committed by GitHub
parent 1806ea710f
commit 1cdb5bdf41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,20 +112,17 @@ return {
}, },
{ {
"linux-cultist/venv-selector.nvim", "linux-cultist/venv-selector.nvim",
branch = "regexp", -- Use this branch for the new version
cmd = "VenvSelect", cmd = "VenvSelect",
opts = function(_, opts) opts = {
if LazyVim.has("nvim-dap-python") then settings = {
opts.dap_enabled = true options = {
end notify_user_on_venv_activation = true,
return vim.tbl_deep_extend("force", opts, {
name = {
"venv",
".venv",
"env",
".env",
}, },
}) },
end, },
-- Call config for python files and load the cached venv automatically
ft = "python",
keys = { { "<leader>cv", "<cmd>:VenvSelect<cr>", desc = "Select VirtualEnv", ft = "python" } }, keys = { { "<leader>cv", "<cmd>:VenvSelect<cr>", desc = "Select VirtualEnv", ft = "python" } },
}, },
{ {