From 40c683f9f292154b38f47716841f4cadde74fdf0 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 24 Jun 2022 09:03:56 +0200 Subject: acoomodate the test to work with behat --- after/plugin/neotest.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'after/plugin/neotest.lua') diff --git a/after/plugin/neotest.lua b/after/plugin/neotest.lua index d70d5cd..efbd159 100644 --- a/after/plugin/neotest.lua +++ b/after/plugin/neotest.lua @@ -12,14 +12,16 @@ neotest.setup({ }, }) -vim.keymap.set("n", "t", function() +-- Not working for behat +-- So add the leader, not ideal but for now is the best +vim.keymap.set("n", "t", function() neotest.run.run() end, { silent = true, noremap = true }) -vim.keymap.set("n", "t", function() +vim.keymap.set("n", "t", function() neotest.run.run(vim.fn.expand("%")) end, { silent = true, noremap = true }) -vim.keymap.set("n", "t", function() +vim.keymap.set("n", "t", function() neotest.summary.toggle() end, { silent = true, noremap = true }) -- cgit v1.2.3