feat(nvim): add neotest plugin

This commit is contained in:
Moritz Böhme 2023-10-27 19:31:03 +02:00
parent 37ad1080e7
commit 844c7a9876
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 53 additions and 18 deletions

View file

@ -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;
}
];
}

View file

@ -0,0 +1,7 @@
require("neotest").setup({
adapters = {
require("neotest-python")({
dap = { justMyCode = false },
}),
},
})