From 74c1766479411357054819b5d8c8376ca12c2504 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 13 Jun 2024 17:01:38 +0200 Subject: [PATCH] fix(python): only enable venv-selector when telescope is availble. See #3612 --- lua/lazyvim/plugins/extras/lang/python.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/python.lua b/lua/lazyvim/plugins/extras/lang/python.lua index 0be4b93c..e328a51f 100644 --- a/lua/lazyvim/plugins/extras/lang/python.lua +++ b/lua/lazyvim/plugins/extras/lang/python.lua @@ -96,10 +96,14 @@ return { end, }, }, + { "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 = { @@ -111,6 +115,7 @@ return { ft = "python", keys = { { "cv", ":VenvSelect", desc = "Select VirtualEnv", ft = "python" } }, }, + { "hrsh7th/nvim-cmp", opts = function(_, opts)