Change the test strategy to vimux
This commit is contained in:
parent
443cfcf95c
commit
4a522c954f
|
@ -44,6 +44,7 @@ in
|
|||
|
||||
# Testing
|
||||
vim-test
|
||||
vimux
|
||||
|
||||
# Git
|
||||
vim-fugitive
|
||||
|
|
|
@ -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'
|
||||
]]
|
||||
|
|
Loading…
Reference in a new issue