From 5a21b5fe2a07b759a0bae866cb958379981e44e9 Mon Sep 17 00:00:00 2001 From: GuillermoOM Date: Wed, 2 Apr 2025 17:58:31 -0700 Subject: [PATCH] added env select and fixed neotest --- lua/custom/plugins/neotest.lua | 1 + lua/custom/plugins/swenv.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 lua/custom/plugins/swenv.lua diff --git a/lua/custom/plugins/neotest.lua b/lua/custom/plugins/neotest.lua index 5fa08d76..a0e73e1f 100644 --- a/lua/custom/plugins/neotest.lua +++ b/lua/custom/plugins/neotest.lua @@ -5,6 +5,7 @@ return { 'nvim-lua/plenary.nvim', 'antoinemadec/FixCursorHold.nvim', 'nvim-treesitter/nvim-treesitter', + 'nvim-neotest/neotest-python', }, config = function() require('neotest').setup { diff --git a/lua/custom/plugins/swenv.lua b/lua/custom/plugins/swenv.lua new file mode 100644 index 00000000..9db69ab2 --- /dev/null +++ b/lua/custom/plugins/swenv.lua @@ -0,0 +1,17 @@ +return { + 'linux-cultist/venv-selector.nvim', + dependencies = { + 'neovim/nvim-lspconfig', + 'mfussenegger/nvim-dap', + 'mfussenegger/nvim-dap-python', --optional + { 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } }, + }, + lazy = false, + branch = 'regexp', -- This is the regexp branch, use this for the new version + keys = { + { 'vs', 'VenvSelect', desc = 'Select Python Viertual Environment' }, + { 'vc', 'VenvSelectCached', desc = 'Load Python Virtual Environment From Cache' }, + }, + ---@type venv-selector.Config + opts = {}, +}