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/neotest.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/neotest.lua')
| -rw-r--r-- | lua/alpha/plugins/neotest.lua | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/lua/alpha/plugins/neotest.lua b/lua/alpha/plugins/neotest.lua deleted file mode 100644 index 5a332be..0000000 --- a/lua/alpha/plugins/neotest.lua +++ /dev/null @@ -1,64 +0,0 @@ -return { - "nvim-neotest/neotest", - enabled = false, - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-treesitter/nvim-treesitter", - "antoinemadec/FixCursorHold.nvim", - "nvim-neotest/neotest-go", - "rouge8/neotest-rust", - "nvim-neotest/neotest-plenary", - "nvim-neotest/neotest-vim-test", - "anuvyklack/hydra.nvim", - }, - config = function() - local neotest = require("neotest") - neotest.setup({ - adapters = { - require("neotest-go"), - require("neotest-rust"), - require("neotest-plenary"), - require("neotest-vim-test")({ - ignore_file_types = { "go", "lua", "rust", "php" }, - }), - -- require("laravel.neotest"), - }, - }) - - local hydra = require("hydra") - - local hint = [[ - NeoTest - _n_: Near test _f_: Current file _l_: Last Test _m_: Run Marked _s_: Toggle Summary ^ - ^ ^ _<Esc>_ - ]] - - hydra({ - name = "neotest", - hint = hint, - mode = "n", - config = { - color = "teal", - invoke_on_body = true, - hint = { - border = "rounded", - position = "bottom", - }, - }, - body = "<C-t>", - heads = { - { "n", neotest.run.run }, - { - "f", - function() - neotest.run.run(vim.fn.expand("%")) - end, - }, - { "l", neotest.run.run_last }, - { "m", neotest.summary.run_marked }, - { "s", neotest.summary.toggle }, - { "<Esc>", nil, { exit = true } }, - }, - }) - end -} |