diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/neotest.lua | 34 | ||||
| -rw-r--r-- | lua/config/plugins.lua | 2 | ||||
| -rw-r--r-- | lua/config/telescope.lua | 2 |
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", }) |
