From 4a522c954f42a9420678384a3830871dd1657b3b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Feb 2025 21:39:24 +0000 Subject: [PATCH] Change the test strategy to vimux --- nix/modules/home-manager/features/cli/neovim.nix | 1 + nvim/plugin/vim-test.lua | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/nix/modules/home-manager/features/cli/neovim.nix b/nix/modules/home-manager/features/cli/neovim.nix index afee38f..5fcca72 100644 --- a/nix/modules/home-manager/features/cli/neovim.nix +++ b/nix/modules/home-manager/features/cli/neovim.nix @@ -44,6 +44,7 @@ in # Testing vim-test + vimux # Git vim-fugitive diff --git a/nvim/plugin/vim-test.lua b/nvim/plugin/vim-test.lua index 0526070..26aaf70 100644 --- a/nvim/plugin/vim-test.lua +++ b/nvim/plugin/vim-test.lua @@ -12,13 +12,5 @@ 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' + let g:test#strategy = 'vimux' ]]