Change the test strategy to vimux
This commit is contained in:
parent
443cfcf95c
commit
4a522c954f
|
@ -44,6 +44,7 @@ in
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
vim-test
|
vim-test
|
||||||
|
vimux
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
vim-fugitive
|
vim-fugitive
|
||||||
|
|
|
@ -12,13 +12,5 @@ set("n", "<leader>ts", ":TestSuite<CR>", options)
|
||||||
|
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
let test#php#phpunit#options = '--colors=always --testdox'
|
let test#php#phpunit#options = '--colors=always --testdox'
|
||||||
|
let g:test#strategy = 'vimux'
|
||||||
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'
|
|
||||||
]]
|
]]
|
||||||
|
|
Loading…
Reference in a new issue