From 8ff9c94f8f96bf58d12450e53cb87c11fe95b8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Mu=C3=B1oz=20Paredes?= Date: Thu, 25 Apr 2024 16:35:26 +0200 Subject: [PATCH] Add virtualenv ui selector --- lua/custom/plugins/venv-selector.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/custom/plugins/venv-selector.lua diff --git a/lua/custom/plugins/venv-selector.lua b/lua/custom/plugins/venv-selector.lua new file mode 100644 index 00000000..ade00fb0 --- /dev/null +++ b/lua/custom/plugins/venv-selector.lua @@ -0,0 +1,16 @@ +return { + 'linux-cultist/venv-selector.nvim', + dependencies = { 'neovim/nvim-lspconfig', 'nvim-telescope/telescope.nvim', 'mfussenegger/nvim-dap-python' }, + opts = { + -- Your options go here + -- name = "venv", + -- auto_refresh = false + }, + event = 'VeryLazy', -- Optional: needed only if you want to type `:VenvSelect` without a keymapping + keys = { + -- Keymap to open VenvSelector to pick a venv. + { 'vs', 'VenvSelect', desc = "[V]irtualenv [S]elect" }, + -- Keymap to retrieve the venv from a cache (the one previously used for the same project directory). + { 'vc', 'VenvSelectCached', desc = "[V]irtualenv select [C]ached" }, + }, +} \ No newline at end of file