feat(nvim): add neotest plugin
This commit is contained in:
parent
37ad1080e7
commit
844c7a9876
5 changed files with 53 additions and 18 deletions
|
|
@ -306,5 +306,25 @@ with builtins;
|
|||
plugin = nvim-puppeteer;
|
||||
lazy = false; # NOTE: plugin lazy-loads itself.
|
||||
}
|
||||
{
|
||||
plugin = neotest;
|
||||
lazy = false;
|
||||
keys = [
|
||||
{ key = "<leader>ct"; cmd = "<cmd>lua require('neotest').summary.toggle()<cr>"; desc = "Test"; }
|
||||
];
|
||||
dependencies = [
|
||||
{ plugin = plenary-nvim; }
|
||||
{ plugin = FixCursorHold-nvim; }
|
||||
|
||||
# adapters
|
||||
{
|
||||
plugin = neotest-python;
|
||||
conf = /* lua */ ''
|
||||
vim.opt.runtimepath:append("${neotest-python}")
|
||||
'';
|
||||
}
|
||||
];
|
||||
conf = readFile ./lua/neotest.lua;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
7
modules/programs/nvim/plugins/lua/neotest.lua
Normal file
7
modules/programs/nvim/plugins/lua/neotest.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require("neotest").setup({
|
||||
adapters = {
|
||||
require("neotest-python")({
|
||||
dap = { justMyCode = false },
|
||||
}),
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue