2021-11-17 09:00:00 +00:00
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
|
|
|
local options = {
|
2022-01-09 00:07:35 +00:00
|
|
|
silent = true,
|
2021-11-17 09:00:00 +00:00
|
|
|
}
|
|
|
|
|
2022-01-09 00:07:35 +00:00
|
|
|
map("n", "t<C-f>", ":TestFile<CR>", options)
|
|
|
|
map("n", "t<C-g>", ":TestVisit<CR>", options)
|
|
|
|
map("n", "t<C-l>", ":TestLast<CR>", options)
|
|
|
|
map("n", "t<C-n>", ":TestNearest<CR>", options)
|
|
|
|
map("n", "t<C-s>", ":TestSuite<CR>", options)
|
2021-11-17 09:00:00 +00:00
|
|
|
|
2022-01-11 17:51:17 +00:00
|
|
|
vim.g["test#echo_command"] = 0
|
|
|
|
vim.g["test#neovim#start_normal"] = 1
|
2022-01-09 00:07:35 +00:00
|
|
|
vim.g["test#strategy"] = "neovim"
|