neote4st
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user