local set = vim.keymap.set local options = { silent = true, } set("n", "tf", ":TestFile", options) set("n", "tg", ":TestVisit", options) set("n", "tl", ":TestLast", options) set("n", "tn", ":TestNearest", options) set("n", "ts", ":TestSuite", options) vim.cmd [[ let test#php#phpunit#options = '--colors=always --testdox' function! TmuxStrategy(cmd) let l:escaped_cmd = substitute(a:cmd, ' ', '\\ ', 'g') execute 'silent !tmux send-keys -t .bottom ' . l:escaped_cmd . ' Enter' endfunction let g:test#custom_strategies = {'tmux': function('TmuxStrategy')} let g:test#strategy = 'tmux' ]]