From d4a4f9233e122f6645f9035dcd48922b60f4f254 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> Date: Mon, 19 Dec 2022 09:44:24 +0000 Subject: [PATCH] chore(nvim): update vim-test key mappings --- config/neovim/after/plugin/vim-test.lua | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/config/neovim/after/plugin/vim-test.lua b/config/neovim/after/plugin/vim-test.lua index 9d09379a..42121e35 100644 --- a/config/neovim/after/plugin/vim-test.lua +++ b/config/neovim/after/plugin/vim-test.lua @@ -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' +]])