diff --git a/dots/.config/nvim/lua/plugins/configs/neotest.lua b/dots/.config/nvim/lua/plugins/configs/neotest.lua new file mode 100644 index 00000000..b286d9b5 --- /dev/null +++ b/dots/.config/nvim/lua/plugins/configs/neotest.lua @@ -0,0 +1,43 @@ +return { + { + "nvim-neotest/neotest", + dependencies = { + "nvim-lua/plenary.nvim", + "antoinemadec/FixCursorHold.nvim", + "nvim-treesitter/nvim-treesitter", + "nvim-neotest/neotest-go", + "mrcjkb/rustaceanvim", + "nvim-neotest/neotest-plenary" + }, + keys = { + { "nrr", "Neotest run", desc = "Neotest: Run Test" }, + { "nrl", "Neotest run file", desc = "Neotest: Run Tests in File" }, + { "nrl", "Neotest run last", desc = "Neotest: Run Last Tests" }, + { "np", "Neotest output-panel", desc = "Neotest: Output Panel" }, + { "no", "Neotest output", desc = "Neotest: Output" }, + { "nn", "Neotest summary toggle", desc = "Neotest: Summary Toggle" }, + { "nk", "Neotest jump prev", desc = "Neotest: Jump Prev" }, + { "nj", "Neotest jump next", desc = "Neotest: Jump Next" }, + { "na", "Neotest attach", desc = "Neotest: Attach" }, + }, + opts = function() + return { + diagnostic = { + enable = true, + severity = 1 + }, + discovery = { + concurrent = 4 + }, + status = { + virtual_text = true + }, + adapters = { + require("neotest-plenary"), + require("neotest-go"), + require('rustaceanvim.neotest') + }, + } + end, + }, +}