2024-03-13 10:04:24 +01:00
|
|
|
return {
|
|
|
|
'linux-cultist/venv-selector.nvim',
|
2024-06-19 14:09:18 +02:00
|
|
|
branch = 'regexp',
|
2024-03-13 10:04:24 +01:00
|
|
|
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.
|
|
|
|
{ '<leader>vs', '<cmd>VenvSelect<cr>' },
|
|
|
|
-- Keymap to retrieve the venv from a cache (the one previously used for the same project directory).
|
|
|
|
{ '<leader>vc', '<cmd>VenvSelectCached<cr>' },
|
|
|
|
},
|
|
|
|
}
|