return { { name = "neotest", dir = "@neotest@", dependencies = { --https://github.com/antoinemadec/FixCursorHold.nvim/issues/13 { name = "FixCursorHold.nvim", dir = "@fixcursorhold_nvim@" }, { name = "nvim-treesitter", dir = "@nvim_treesitter@" }, { name = "plenary.nvim", dir = "@plenary_nvim@" }, }, keys = { "u" }, config = function() require("neotest").setup({ adapters = { require("neotest-python")({ dap = { justMyCode = false }, python = "python", }), }, }) vim.keymap.set("n", "ur", ':lua require("neotest").run.run()') vim.keymap.set("n", "uf", ':lua require("neotest").run.run(vim.fn.expand("%"))') vim.keymap.set("n", "ud", ':lua require("neotest").run.run({strategy = "dap"})') vim.keymap.set("n", "us", ':lua require("neotest").run.stop()') vim.keymap.set("n", "ua", ':lua require("neotest").run.attach()') end, }, { name = "neotest-python", dir = "@neotest_python@", dependencies = { { name = "neotest", dir = "@neotest@" }, { name = "nvim-treesitter", dir = "@nvim_treesitter@" }, }, }, }