40 lines
876 B
Lua
40 lines
876 B
Lua
return {
|
|
{
|
|
"nvim-neotest/neotest",
|
|
dependencies = {
|
|
"nvim-neotest/nvim-nio",
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
|
|
-- Adapters
|
|
"nvim-neotest/neotest-go",
|
|
"nvim-neotest/neotest-python",
|
|
},
|
|
config = function()
|
|
require("neotest").setup({
|
|
log_level = vim.log.levels.WARN,
|
|
discovery = {
|
|
enabled = true,
|
|
concurrent = 0,
|
|
},
|
|
running = {
|
|
concurrent = true,
|
|
},
|
|
adapters = {
|
|
require("neotest-go")({
|
|
experimental = {
|
|
test_table = true,
|
|
},
|
|
args = { "-count=1", "-race" },
|
|
}),
|
|
|
|
require("neotest-python")({
|
|
dap = { justMyCode = false },
|
|
args = { "--disable-warnings", "-q" },
|
|
}),
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}
|