Skip to content

Commit 5a21b5f

Browse files
committed
added env select and fixed neotest
1 parent 146a6ba commit 5a21b5f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

lua/custom/plugins/neotest.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ return {
55
'nvim-lua/plenary.nvim',
66
'antoinemadec/FixCursorHold.nvim',
77
'nvim-treesitter/nvim-treesitter',
8+
'nvim-neotest/neotest-python',
89
},
910
config = function()
1011
require('neotest').setup {

lua/custom/plugins/swenv.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
return {
2+
'linux-cultist/venv-selector.nvim',
3+
dependencies = {
4+
'neovim/nvim-lspconfig',
5+
'mfussenegger/nvim-dap',
6+
'mfussenegger/nvim-dap-python', --optional
7+
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
8+
},
9+
lazy = false,
10+
branch = 'regexp', -- This is the regexp branch, use this for the new version
11+
keys = {
12+
{ '<leader>vs', '<cmd>VenvSelect<cr>', desc = 'Select Python Viertual Environment' },
13+
{ '<leader>vc', '<cmd>VenvSelectCached<cr>', desc = 'Load Python Virtual Environment From Cache' },
14+
},
15+
---@type venv-selector.Config
16+
opts = {},
17+
}

0 commit comments

Comments
 (0)