Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Use vim-test instead of abagile test
Browse files Browse the repository at this point in the history
  • Loading branch information
Springok committed Oct 16, 2022
1 parent 4ac534b commit bee22bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 10 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,17 @@ keymap('x', 'ih', ':<C-U>Gitsigns select_hunk<CR>', opts)
-- Abagile vim
keymap("n", "<leader><space>", ":call abagile#whitespace#strip_trailing()<cr>", opts)

keymap("n", "<Leader>tl", ":call abagile#rails#test_tmux('h')", opts)
keymap("n", "<Leader>tf", ":call abagile#rails#test_tmux('h', 1)", opts)

keymap("n", "<Leader>]", ":Vista<cr>", opts)

-- Spectre, search and replace
keymap("v", "<leader>fc", "<cmd>lua require('spectre').open_visual()<CR>", opts)

-- Running tests
vim.g['abagile_rails_test_runner'] = 0
vim.g['test#strategy'] = 'vtr'
vim.g['test#runner_commands'] = { 'Minitest', 'Rails' }

keymap("n", "<Leader>tl", "<cmd>TestLast<CR>", opts)
keymap("n", "<Leader>tf", "<cmd>TestFile<CR>", opts)
keymap("n", "<Leader>tn", "<cmd>TestNearest<CR>", opts)
keymap("n", "<Leader>tg", "<cmd>TestVisit<CR>", opts)
4 changes: 4 additions & 0 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ return packer.startup(function()
use 'Olical/conjure'
use 'clojure-vim/vim-jack-in'


-- Running Tests
use 'vim-test/vim-test'

-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if PACKER_BOOTSTRAP then
Expand Down

0 comments on commit bee22bc

Please sign in to comment.