Some checks are pending
Check Lua Formatting in MyRepo / Stylua Check (push) Waiting to run
29 lines
797 B
Lua
Executable file
29 lines
797 B
Lua
Executable file
return {
|
|
'linux-cultist/venv-selector.nvim',
|
|
cmd = 'VenvSelect',
|
|
dependencies = {
|
|
'neovim/nvim-lspconfig',
|
|
'nvim-telescope/telescope.nvim',
|
|
-- Remove nvim-dap-python from here - it's defined separately
|
|
},
|
|
opts = {
|
|
settings = {
|
|
options = {
|
|
activate_venv_in_terminal = true,
|
|
notify_user_on_venv_activation = true,
|
|
debug = true,
|
|
},
|
|
search = {
|
|
pyenv = {
|
|
command = 'fd python$ -E "*lib*" -E "*init*" ${PYENV_ROOT}/versions/*.*.*/envs',
|
|
on_telescope_result_callback = function(filename)
|
|
return filename:gsub(os.getenv('HOME'), '~'):gsub('/bin/python', '')
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
keys = {
|
|
{ ',v', '<cmd>VenvSelect<cr>', desc = 'Select Virtual Environment' },
|
|
},
|
|
}
|