mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
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:
parent
1806ea710f
commit
1cdb5bdf41
1 changed files with 9 additions and 12 deletions
|
@ -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" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue