chore(nvim): update vim-test key mappings

This commit is contained in:
Oliver Davies 2022-12-19 09:44:24 +00:00
parent a2dc676a42
commit d4a4f9233e

View file

@ -4,12 +4,17 @@ local options = {
silent = true,
}
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)
map("n", "<leader>tf", ":TestFile<CR>", options)
map("n", "<leader>tg", ":TestVisit<CR>", options)
map("n", "<leader>tl", ":TestLast<CR>", options)
map("n", "<leader>tn", ":TestNearest<CR>", options)
map("n", "<leader>ts", ":TestSuite<CR>", options)
vim.g["test#echo_command"] = 0
vim.g["test#neovim#start_normal"] = 1
vim.g["test#strategy"] = "vimux"
vim.cmd([[
let test#echo_command = 0
let test#neovim#start_normal = 1
let test#strategy = "vimux"
let test#php#phpunit#executable = 'just test'
let test#php#phpunit#options = '--colors=always'
]])