22 lines
606 B
Lua
22 lines
606 B
Lua
return { { "nvim-neotest/neotest", dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"marilari88/neotest-vitest",
|
|
"nvim-neotest/neotest-plenary",
|
|
},
|
|
config = function()
|
|
local neotest = require("neotest")
|
|
neotest.setup({
|
|
adapters = {
|
|
require("neotest-vitest"),
|
|
-- require("neotest-plenary").setup({
|
|
-- -- this is my standard location for minimal vim rc
|
|
-- -- in all my projects
|
|
-- min_init = "./scripts/tests/minimal.vim",
|
|
-- }),
|
|
}
|
|
})
|
|
vim.keymap.set("n", "<leader>tc", function() neotest.run.run() end)
|
|
end } }
|