Change the test strategy to vimux

This commit is contained in:
Oliver Davies 2025-02-12 21:39:24 +00:00
parent 443cfcf95c
commit 4a522c954f
2 changed files with 2 additions and 9 deletions

View file

@ -44,6 +44,7 @@ in
# Testing
vim-test
vimux
# Git
vim-fugitive

View file

@ -12,13 +12,5 @@ set("n", "<leader>ts", ":TestSuite<CR>", 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'
let g:test#strategy = 'vimux'
]]