From f05052d5e3c5274a84d2028c7a58eca9ca76db2a Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Thu, 22 Jan 2026 10:54:13 +0000 Subject: added neotest back into the mix --- lua/config/neotest.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/config/neotest.lua (limited to 'lua/config/neotest.lua') diff --git a/lua/config/neotest.lua b/lua/config/neotest.lua new file mode 100644 index 0000000..1315250 --- /dev/null +++ b/lua/config/neotest.lua @@ -0,0 +1,34 @@ +vim.pack.add({ + "https://github.com/nvim-neotest/neotest", + "https://github.com/antoinemadec/FixCursorHold.nvim", + + "https://github.com/rcasia/neotest-java", + "https://github.com/marilari88/neotest-vitest", +}) + +require("neotest").setup({ + adapters = { + require("neotest-vitest"), + require("neotest-java"), + }, +}) + +vim.keymap.set("n", "tr", function() + require("neotest").run.run({ suite = false }) +end) + +vim.keymap.set("n", "ts", function() + require("neotest").run.run({ suite = true }) +end) + +vim.keymap.set("n", "tv", function() + require("neotest").run.run(vim.fn.expand("%")) +end) + +vim.keymap.set("n", "tv", function() + require("neotest").summary.toggle() +end) + +vim.keymap.set("n", "to", function() + require("neotest").output.open() +end) -- cgit v1.2.3