neotest shortcuts
This commit is contained in:
+28
-7
@@ -15,13 +15,6 @@ return {
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>nt",
|
||||
function()
|
||||
require("neotest").run.run()
|
||||
end,
|
||||
{ desc = "Run Neotest" },
|
||||
},
|
||||
{
|
||||
"<leader>nt",
|
||||
function()
|
||||
@@ -29,6 +22,34 @@ return {
|
||||
end,
|
||||
{ desc = "Test current file" },
|
||||
},
|
||||
{
|
||||
"<leader>nT",
|
||||
function()
|
||||
require("neotest").run.run()
|
||||
end,
|
||||
{ desc = "Run test suite" },
|
||||
},
|
||||
{
|
||||
"<leader>ns",
|
||||
function()
|
||||
require("neotest").summary.toggle()
|
||||
end,
|
||||
{ desc = "Toggle neotest summary" },
|
||||
},
|
||||
{
|
||||
"<leader>nw",
|
||||
function()
|
||||
require("neotest").watch.watch(vim.fn.expand "%")
|
||||
end,
|
||||
{ desc = "Watch current file" },
|
||||
},
|
||||
{
|
||||
"<leader>nW",
|
||||
function()
|
||||
require("neotest").watch.watch()
|
||||
end,
|
||||
{ desc = "Watch test suite" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user