return { { "nvim-neotest/neotest", dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "antoinemadec/FixCursorHold.nvim", "nvim-neotest/neotest-python", }, keys = { { "tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run buffer" }, { "tT", function() require("neotest").run.run(vim.loop.cwd()) end, desc = "Run all files" }, { "tr", function() require("neotest").run.run() end, desc = "Run nearest test" }, { "td", function() require("neotest").run.run({strategy="dap"}) end, desc = "Debug nearest test" }, { "ts", function() require("neotest").summary.toggle() end, desc = "Toggle summary" }, { "to", function() require("neotest").output.open({enter=true, auto_close=true}) end, desc = "Show output" }, { "tO", function() require("neotest").output_panel.toggle() end, desc = "Toggle output panel" }, { "tS", function() require("neotest").run.stop() end, desc = "Stop" }, { "twt", function() require("neotest").watch.watch(vim.fn.expand("%")) end, desc = "Watch buffer" }, { "twT", function() require("neotest").watch.watch(vim.loop.cwd()) end, desc = "Watch all files" }, { "twr", function() require("neotest").watch.watch() end, desc = "Watch nearest test" }, { "tws", function() require("neotest").watch.stop() end, desc = "Stop watching" }, }, config = function() require("neotest").setup({ adapters = { require("neotest-python"), }, }) end, }, }