feat: initial commit
- basic config according to spec
This commit is contained in:
commit
9b0446c5f6
36 files changed
+1114
No files matched your search
@@ -0,0 +1,44 @@
|
||||
local function nt(fn)
|
||||
return function()
|
||||
fn(require("neotest"))
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
cond = vim.g.profile == "full",
|
||||
dependencies = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"rouge8/neotest-rust",
|
||||
"fredrikaverpil/neotest-golang",
|
||||
"marilari88/neotest-vitest",
|
||||
"nvim-neotest/neotest-jest",
|
||||
"nvim-neotest/neotest-python",
|
||||
"V13Axel/neotest-pest",
|
||||
"olimorris/neotest-phpunit",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>tt", nt(function(n) n.run.run() end), desc = "Run nearest test" },
|
||||
{ "<leader>tf", nt(function(n) n.run.run(vim.fn.expand("%")) end), desc = "Run test file" },
|
||||
{ "<leader>ts", nt(function(n) n.summary.toggle() end), desc = "Test summary" },
|
||||
{ "<leader>to", nt(function(n) n.output.open({ enter = true }) end), desc = "Test output" },
|
||||
{ "<leader>td", nt(function(n) n.run.run({ strategy = "dap" }) end), desc = "Debug nearest test" },
|
||||
},
|
||||
config = function()
|
||||
require("neotest").setup({
|
||||
adapters = {
|
||||
require("neotest-rust"),
|
||||
require("neotest-golang")({}),
|
||||
require("neotest-vitest"),
|
||||
require("neotest-jest")({}),
|
||||
require("neotest-python")({ dap = { justMyCode = false } }),
|
||||
require("neotest-pest"),
|
||||
require("neotest-phpunit"),
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user