From a04f9cd914055244f29e9ff17aa7a723f5db2405 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 17 Jan 2023 23:53:34 +0100 Subject: feat: migration to lazy --- after/plugin/neotest.lua | 52 ------------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 after/plugin/neotest.lua (limited to 'after/plugin/neotest.lua') diff --git a/after/plugin/neotest.lua b/after/plugin/neotest.lua deleted file mode 100644 index a18016e..0000000 --- a/after/plugin/neotest.lua +++ /dev/null @@ -1,52 +0,0 @@ -local ok, neotest = pcall(require, "neotest") -if not ok then - return -end - -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 ^ - ^ ^ __ -]] - -hydra({ - name = "neotest", - hint = hint, - mode = "n", - config = { - color = "teal", - invoke_on_body = true, - hint = { - border = "rounded", - position = "bottom", - }, - }, - body = "", - 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 }, - { "", nil, { exit = true } }, - }, -}) -- cgit v1.2.3