aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/test.lua')
-rw-r--r--lua/plugins/test.lua68
1 files changed, 34 insertions, 34 deletions
diff --git a/lua/plugins/test.lua b/lua/plugins/test.lua
index 7fcabc9..e203679 100644
--- a/lua/plugins/test.lua
+++ b/lua/plugins/test.lua
@@ -1,49 +1,49 @@
return {
- "vim-test/vim-test",
- keys = {{"<leader>t"}},
- dependencies = {
- "anuvyklack/hydra.nvim",
- },
- config = function()
- local hydra = require("hydra")
+ "vim-test/vim-test",
+ keys = { { "<leader>t" } },
+ dependencies = {
+ "anuvyklack/hydra.nvim",
+ },
+ config = function()
+ local hydra = require "hydra"
- vim.g["test#preserve_screen"] = 1
+ vim.g["test#preserve_screen"] = 1
- vim.cmd([[
+ vim.cmd [[
let test#php#pest#executable = './vendor/bin/sail test'
let test#strategy = 'neovim'
let test#neovim#term_position = 'vert'
let g:test#preserve_screen = 1
-]] )
+]]
- local hint = [[
+ local hint = [[
Vim Tests
_n_: Near test _f_: Current file _s_: Test Suit ^
_l_: Test Last _g_: Visit
^ ^ _<Esc>_ ^
]]
- hydra({
- name = "vimtest",
- hint = hint,
- mode = "n",
- config = {
- color = "teal",
- invoke_on_body = true,
- hint = {
- border = "rounded",
- position = "bottom",
- }
- },
- body = "<leader>t",
- heads = {
- { "n", ":TestNearest<CR>" },
- { "f", ":TestFile<CR>" },
- { "s", ":TestSuit<CR>" },
- { "l", ":TestLast<CR>" },
- { "g", ":TestVisit<CR>" },
- { '<Esc>', nil, { exit = true } }
- }
- })
- end
+ hydra {
+ name = "vimtest",
+ hint = hint,
+ mode = "n",
+ config = {
+ color = "teal",
+ invoke_on_body = true,
+ hint = {
+ border = "rounded",
+ position = "bottom",
+ },
+ },
+ body = "<leader>t",
+ heads = {
+ { "n", ":TestNearest<CR>" },
+ { "f", ":TestFile<CR>" },
+ { "s", ":TestSuit<CR>" },
+ { "l", ":TestLast<CR>" },
+ { "g", ":TestVisit<CR>" },
+ { "<Esc>", nil, { exit = true } },
+ },
+ }
+ end,
}