diff options
| -rw-r--r-- | lua/config/neotest.lua | 34 | ||||
| -rw-r--r-- | lua/config/plugins.lua | 2 | ||||
| -rw-r--r-- | lua/config/telescope.lua | 2 | ||||
| -rw-r--r-- | nvim-pack-lock.json | 32 |
4 files changed, 62 insertions, 8 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", }) diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json index 4e25492..1a6d90d 100644 --- a/nvim-pack-lock.json +++ b/nvim-pack-lock.json @@ -1,5 +1,9 @@ { "plugins": { + "FixCursorHold.nvim": { + "rev": "1900f89dc17c603eec29960f57c00bd9ae696495", + "src": "https://github.com/antoinemadec/FixCursorHold.nvim" + }, "auto-dark-mode.nvim": { "rev": "e300259ec777a40b4b9e3c8e6ade203e78d15881", "src": "https://github.com/f-person/auto-dark-mode.nvim" @@ -10,7 +14,7 @@ "version": ">=0.0.0" }, "conform.nvim": { - "rev": "238f542a118984a88124fc915d5b981680418707", + "rev": "c2526f1cde528a66e086ab1668e996d162c75f4f", "src": "https://github.com/stevearc/conform.nvim" }, "friendly-snippets": { @@ -18,9 +22,21 @@ "src": "https://github.com/rafamadriz/friendly-snippets" }, "gruvbox.nvim": { - "rev": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437", + "rev": "a472496e1a4465a2dd574389dcf6cdb29af9bf1b", "src": "https://github.com/ellisonleao/gruvbox.nvim" }, + "neotest": { + "rev": "deadfb1af5ce458742671ad3a013acb9a6b41178", + "src": "https://github.com/nvim-neotest/neotest" + }, + "neotest-java": { + "rev": "b9a261a3b98b81ffd5249144c1345cc55ae05bdd", + "src": "https://github.com/rcasia/neotest-java" + }, + "neotest-vitest": { + "rev": "f01addc6f07b79ef1be5f4297eafbee9e0959018", + "src": "https://github.com/marilari88/neotest-vitest" + }, "nui.nvim": { "rev": "de740991c12411b663994b2860f1a4fd0937c130", "src": "https://github.com/MunifTanjim/nui.nvim" @@ -30,7 +46,7 @@ "src": "https://github.com/windwp/nvim-autopairs" }, "nvim-dap": { - "rev": "085386b9359ddf8d76ad89b98973b8e332dc5ba3", + "rev": "b9639ca05dd692647594733554640377ec6b1ab9", "src": "https://codeberg.org/mfussenegger/nvim-dap" }, "nvim-dap-view": { @@ -42,9 +58,13 @@ "src": "https://tangled.org/treybastian.com/nvim-jack-in" }, "nvim-lspconfig": { - "rev": "92ee7d42320edfbb81f3cad851314ab197fa324a", + "rev": "419b082102fa813739588dd82e19a8b6b2442855", "src": "https://github.com/neovim/nvim-lspconfig" }, + "nvim-nio": { + "rev": "21f5324bfac14e22ba26553caf69ec76ae8a7662", + "src": "https://github.com/nvim-neotest/nvim-nio" + }, "nvim-surround": { "rev": "1098d7b3c34adcfa7feb3289ee434529abd4afd1", "src": "https://github.com/kylechui/nvim-surround" @@ -62,7 +82,7 @@ "src": "https://github.com/RRethy/nvim-treesitter-endwise" }, "nvim-ts-autotag": { - "rev": "c4ca798", + "rev": "db15f2e0df2f5db916e511e3fffb682ef2f6354f", "src": "https://github.com/windwp/nvim-ts-autotag" }, "plenary.nvim": { @@ -78,7 +98,7 @@ "src": "https://github.com/HiPhish/rainbow-delimiters.nvim" }, "telescope.nvim": { - "rev": "a8c2223ea6b185701090ccb1ebc7f4e41c4c9784", + "rev": "0d8b6eaa0b5ae6bb3d9785f7a3ba4a4c6c1b1af2", "src": "https://github.com/nvim-telescope/telescope.nvim" }, "vim-eunuch": { |
