2023-02-20 11:09:53 +00:00
|
|
|
return {
|
|
|
|
"klen/nvim-test",
|
2023-02-20 11:25:00 +00:00
|
|
|
cmd = {
|
|
|
|
"TestFile",
|
|
|
|
"TestEdit",
|
|
|
|
"TestNearest",
|
|
|
|
"TestLast",
|
|
|
|
"TestVisit",
|
|
|
|
"TestInfo",
|
2023-03-03 11:12:22 +00:00
|
|
|
"TestSuite",
|
2023-02-20 11:25:00 +00:00
|
|
|
},
|
2023-05-11 08:51:35 +01:00
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>ts", "<cmd>TestSuite<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>tf", "<cmd>TestFile<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>te", "<cmd>TestEdit<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>tn", "<cmd>TestNearest<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>tl", "<cmd>TestLast<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>tv", "<cmd>TestVisit<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>ti", "<cmd>TestInfo<cr>")
|
|
|
|
end,
|
|
|
|
config = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
otps = {
|
|
|
|
termOpts = {
|
|
|
|
direction = "horizontal",
|
|
|
|
keep_one = true,
|
|
|
|
},
|
|
|
|
},
|
2023-02-20 11:09:53 +00:00
|
|
|
}
|