From 182f93b553c71233501b03ace5075ea73a02fc01 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Mon, 3 Feb 2025 15:40:35 +0000 Subject: [PATCH] neotest shortcuts --- lua/plugins/neotest.lua | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/lua/plugins/neotest.lua b/lua/plugins/neotest.lua index a20e0d8..0b03c2a 100644 --- a/lua/plugins/neotest.lua +++ b/lua/plugins/neotest.lua @@ -15,13 +15,6 @@ return { } end, keys = { - { - "nt", - function() - require("neotest").run.run() - end, - { desc = "Run Neotest" }, - }, { "nt", function() @@ -29,6 +22,34 @@ return { end, { desc = "Test current file" }, }, + { + "nT", + function() + require("neotest").run.run() + end, + { desc = "Run test suite" }, + }, + { + "ns", + function() + require("neotest").summary.toggle() + end, + { desc = "Toggle neotest summary" }, + }, + { + "nw", + function() + require("neotest").watch.watch(vim.fn.expand "%") + end, + { desc = "Watch current file" }, + }, + { + "nW", + function() + require("neotest").watch.watch() + end, + { desc = "Watch test suite" }, + }, }, }, }