nvim/lua/nat/lazy/neotest.lua

22 lines
606 B
Lua
Raw Permalink Normal View History

2024-10-27 07:46:39 +00:00
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 } }