35 lines
699 B
Lua
35 lines
699 B
Lua
return {
|
|
{
|
|
"nvim-neotest/neotest",
|
|
dependencies = {
|
|
"nvim-neotest/nvim-nio",
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
},
|
|
config = function()
|
|
require("neotest").setup {
|
|
adapters = {
|
|
require "rustaceanvim.neotest",
|
|
},
|
|
}
|
|
end,
|
|
keys = {
|
|
{
|
|
"<leader>nt",
|
|
function()
|
|
require("neotest").run.run()
|
|
end,
|
|
{ desc = "Run Neotest" },
|
|
},
|
|
{
|
|
"<leader>nt",
|
|
function()
|
|
require("neotest").run.run(vim.fn.expand "%")
|
|
end,
|
|
{ desc = "Test current file" },
|
|
},
|
|
},
|
|
},
|
|
}
|