nvim/lua/custom/plugins/venv-selector.lua
Jeremie Fraeys 02e26b00b7
Some checks are pending
Check Lua Formatting in MyRepo / Stylua Check (push) Waiting to run
chore(nvim): reinitialize with working config
2026-02-07 21:06:45 -05:00

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' },
},
}