diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-22 10:18:07 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-01-22 10:18:07 +0100 |
| commit | 5455aacdedfb2829f000b2f120a6d5194d1227f8 (patch) | |
| tree | ca73cfdf3b9106aab00c5acb3d239df61e9c43d9 /lua/alpha/plugins/test.lua | |
| parent | bf157b642c2910abae1810c985817e42502000b5 (diff) | |
| download | nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.tar.gz nvim-conf-5455aacdedfb2829f000b2f120a6d5194d1227f8.zip | |
feat: big change on the structure of the plugins, move several things to config dir
Diffstat (limited to 'lua/alpha/plugins/test.lua')
| -rw-r--r-- | lua/alpha/plugins/test.lua | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/lua/alpha/plugins/test.lua b/lua/alpha/plugins/test.lua deleted file mode 100644 index 7fcabc9..0000000 --- a/lua/alpha/plugins/test.lua +++ /dev/null @@ -1,49 +0,0 @@ -return { - "vim-test/vim-test", - keys = {{"<leader>t"}}, - dependencies = { - "anuvyklack/hydra.nvim", - }, - config = function() - local hydra = require("hydra") - - vim.g["test#preserve_screen"] = 1 - - 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 = [[ - 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 -} |