aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2026-01-22 10:54:13 +0000
committerTrey Bastian <hello@treybastian.com>2026-01-22 10:54:13 +0000
commitf05052d5e3c5274a84d2028c7a58eca9ca76db2a (patch)
treedd28c719960fbf07bf0881f23080e066e34b4ee8 /lua/config
parent4a3acb5408509badd21b263925c00cad6a7b43b9 (diff)
added neotest back into the mix
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/neotest.lua34
-rw-r--r--lua/config/plugins.lua2
-rw-r--r--lua/config/telescope.lua2
3 files changed, 36 insertions, 2 deletions
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", "<leader>tr", function()
+ require("neotest").run.run({ suite = false })
+end)
+
+vim.keymap.set("n", "<leader>ts", function()
+ require("neotest").run.run({ suite = true })
+end)
+
+vim.keymap.set("n", "<leader>tv", function()
+ require("neotest").run.run(vim.fn.expand("%"))
+end)
+
+vim.keymap.set("n", "<leader>tv", function()
+ require("neotest").summary.toggle()
+end)
+
+vim.keymap.set("n", "<leader>to", function()
+ require("neotest").output.open()
+end)
diff --git a/lua/config/plugins.lua b/lua/config/plugins.lua
index ec4f26a..4b95fb7 100644
--- a/lua/config/plugins.lua
+++ b/lua/config/plugins.lua
@@ -8,6 +8,8 @@ vim.pack.add({
"https://github.com/f-person/auto-dark-mode.nvim",
"https://github.com/ellisonleao/gruvbox.nvim",
"https://github.com/MunifTanjim/nui.nvim",
+ "https://github.com/nvim-neotest/nvim-nio",
+ "https://github.com/nvim-lua/plenary.nvim",
})
require("nvim-autopairs").setup()
diff --git a/lua/config/telescope.lua b/lua/config/telescope.lua
index 0c4ed4f..8362e92 100644
--- a/lua/config/telescope.lua
+++ b/lua/config/telescope.lua
@@ -1,6 +1,4 @@
-local vim = vim
vim.pack.add({
- "https://github.com/nvim-lua/plenary.nvim",
"https://github.com/nvim-telescope/telescope.nvim",
})