aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin/neotest.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-06-24 09:03:56 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-06-24 09:03:56 +0200
commit40c683f9f292154b38f47716841f4cadde74fdf0 (patch)
tree9258de78d67c73aff1ad772789fc42adc7d9c31b /after/plugin/neotest.lua
parentc923d7ed2c29840c69650b46a1fed126d54668ee (diff)
downloadnvim-conf-40c683f9f292154b38f47716841f4cadde74fdf0.tar.gz
nvim-conf-40c683f9f292154b38f47716841f4cadde74fdf0.zip
acoomodate the test to work with behat
Diffstat (limited to 'after/plugin/neotest.lua')
-rw-r--r--after/plugin/neotest.lua8
1 files changed, 5 insertions, 3 deletions
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<C-n>", function()
+-- Not working for behat
+-- So add the leader, not ideal but for now is the best
+vim.keymap.set("n", "<leader>t<C-n>", function()
neotest.run.run()
end, { silent = true, noremap = true })
-vim.keymap.set("n", "t<C-f>", function()
+vim.keymap.set("n", "<leader>t<C-f>", function()
neotest.run.run(vim.fn.expand("%"))
end, { silent = true, noremap = true })
-vim.keymap.set("n", "t<C-s>", function()
+vim.keymap.set("n", "<leader>t<C-s>", function()
neotest.summary.toggle()
end, { silent = true, noremap = true })