added neotest

This commit is contained in:
n 2024-10-27 07:46:39 +00:00
parent 8c7fb8053b
commit 1929ec4eff

21
lua/nat/lazy/neotest.lua Normal file
View File

@ -0,0 +1,21 @@
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 } }