refactor(nvim): improve neotest bindings
This commit is contained in:
parent
1570c3f223
commit
7f028d5cf9
@ -15,10 +15,17 @@ return {
|
|||||||
{ "<leader>kf", "<cmd>Neotest run file<CR>", desc = "Neotest: Run Test(s) in File" },
|
{ "<leader>kf", "<cmd>Neotest run file<CR>", desc = "Neotest: Run Test(s) in File" },
|
||||||
{ "<leader>kl", "<cmd>Neotest run last<CR>", desc = "Neotest: Run Last Test(s)" },
|
{ "<leader>kl", "<cmd>Neotest run last<CR>", desc = "Neotest: Run Last Test(s)" },
|
||||||
{ "<leader>kp", "<cmd>Neotest output-panel<CR>", desc = "Neotest: Output Panel" },
|
{ "<leader>kp", "<cmd>Neotest output-panel<CR>", desc = "Neotest: Output Panel" },
|
||||||
{ "<leader>ko", "<cmd>Neotest output<CR>", desc = "Neotest: Output" },
|
{
|
||||||
{ "<leader>kn", "<cmd>Neotest summary toggle<CR>", desc = "Neotest: Summary Toggle" },
|
"<leader>ko",
|
||||||
{ "<leader>kk", "<cmd>Neotest jump prev<CR>", desc = "Neotest: Jump Prev" },
|
function()
|
||||||
{ "<leader>kj", "<cmd>Neotest jump next<CR>", desc = "Neotest: Jump Next" },
|
local neotest = require("neotest")
|
||||||
|
neotest.output.open({ enter = true })
|
||||||
|
end,
|
||||||
|
desc = "Neotest: Output",
|
||||||
|
},
|
||||||
|
{ "<leader>kk", "<cmd>Neotest summary toggle<CR>", desc = "Neotest: Summary Toggle" },
|
||||||
|
{ "<leader>kn", "<cmd>Neotest jump prev<CR>", desc = "Neotest: Jump Prev" },
|
||||||
|
{ "<leader>kN", "<cmd>Neotest jump next<CR>", desc = "Neotest: Jump Next" },
|
||||||
{ "<leader>ka", "<cmd>Neotest attach<CR>", desc = "Neotest: Attach" },
|
{ "<leader>ka", "<cmd>Neotest attach<CR>", desc = "Neotest: Attach" },
|
||||||
},
|
},
|
||||||
opts = function()
|
opts = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user