return { { "nvim-neotest/neotest", dependencies = { "nvim-neotest/nvim-nio", "nvim-lua/plenary.nvim", "antoinemadec/FixCursorHold.nvim", "nvim-treesitter/nvim-treesitter", }, config = function() require("neotest").setup { adapters = { require "rustaceanvim.neotest", }, } end, keys = { { "tt", function() require("neotest").run.run(vim.fn.expand "%") end, { desc = "Test current file" }, }, { "TT", function() require("neotest").run.run() end, { desc = "Run test suite" }, }, { "ts", function() require("neotest").summary.toggle() end, { desc = "Toggle neotest summary" }, }, { "tw", function() require("neotest").watch.watch(vim.fn.expand "%") end, { desc = "Watch current file" }, }, { "TW", function() require("neotest").watch.watch() end, { desc = "Watch test suite" }, }, { "to", function() require("neotest").output.open() end, { desc = "View test output" }, }, }, }, }