local map = require("core.utils").smap return { "nvim-neotest/neotest", keys = { { "tn", map("neotest", "run.run") }, { "ta", map("neotest", "run.attach") }, { "ts", map("neotest", "summary.toggle") }, { "tS", map("neotest", "run.stop") }, { "to", map("neotest", "output.open") }, { "]t", map("neotest", "jump.next") }, { "[t", map("neotest", "jump.prev") }, { "]T", map("neotest", "jump.next", "{status = 'failed'}") }, { "]T", map("neotest", "jump.next", "{status = 'failed'}") }, { "td", map("neotest", "run.run", "{strategy = 'dap'}") }, { "tt", function() require("neotest").run.run(vim.fn.expand "%") end, }, }, dependencies = { "nvim-neotest/neotest-go", "nvim-neotest/neotest-plenary", "rouge8/neotest-rust", }, config = function() require("neotest").setup { adapters = { require "neotest-go" { experimental = { test_table = true } }, require "neotest-plenary", require "neotest-rust", }, icons = { expanded = "", child_prefix = "", child_indent = "", final_child_prefix = "", non_collapsible = "", collapsed = "", passed = "", running = "", failed = "", unknown = "", }, summary = { mappings = { expand = { "l", "h", "" }, stop = "s", }, }, } end, }