diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-06-24 09:03:56 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-06-24 09:03:56 +0200 |
| commit | 40c683f9f292154b38f47716841f4cadde74fdf0 (patch) | |
| tree | 9258de78d67c73aff1ad772789fc42adc7d9c31b /after/plugin/neotest.lua | |
| parent | c923d7ed2c29840c69650b46a1fed126d54668ee (diff) | |
| download | nvim-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.lua | 8 |
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 }) |