venv selector; debug;
This commit is contained in:
parent
13b8601d80
commit
91dbf1aceb
2 changed files with 27 additions and 1 deletions
16
lua/custom/plugins/venv_selector.lua
Normal file
16
lua/custom/plugins/venv_selector.lua
Normal file
|
|
@ -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", ".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>' },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue