mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Update 2025-05-03 Update 2025-05-05 Update 2025-05-07 Update 2025-05-09 chore: use mini.nvim Update 2025-05-12 Update 2025-05-14 Update 2025-05-16 Update 2025-05-17 Update 2025-05-20 Update 2025-05-21 Update 2025-05-23 Update 2025-05-25 Update 2025-05-30
64 lines
1.3 KiB
Lua
64 lines
1.3 KiB
Lua
return {
|
|
"nvim-neotest/neotest",
|
|
dependencies = {
|
|
"nvim-neotest/nvim-nio",
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"nvim-neotest/neotest-python",
|
|
"alfaix/neotest-gtest",
|
|
"nvim-neotest/neotest-vim-test",
|
|
"mrcjkb/rustaceanvim",
|
|
},
|
|
cmd = { "Neotest" },
|
|
keys = {
|
|
{
|
|
"<leader>tt",
|
|
function()
|
|
require("neotest").watch.toggle(vim.fn.expand("%"))
|
|
end,
|
|
desc = "Toggle NeoTest",
|
|
},
|
|
{
|
|
"<leader>ts",
|
|
function()
|
|
require("neotest").summary.toggle()
|
|
end,
|
|
desc = "Toggle Summary",
|
|
},
|
|
{
|
|
"<leader>tj",
|
|
function()
|
|
require("neotest").jump.next({ status = "failed" })
|
|
end,
|
|
desc = "Jump to next",
|
|
},
|
|
{
|
|
"<leader>tk",
|
|
function()
|
|
require("neotest").jump.prev({ status = "failed" })
|
|
end,
|
|
desc = "Jump to prev",
|
|
},
|
|
},
|
|
opts = function(_, opts)
|
|
opts = opts or {}
|
|
opts.adapters = {
|
|
require("neotest-python")({
|
|
dap = { justMyCode = false },
|
|
args = { "--log-level", "DEBUG" },
|
|
runner = "pytest",
|
|
}),
|
|
require("neotest-gtest").setup({}),
|
|
require("neotest-vim-test")({
|
|
ignore_file_types = { "python", "vim", "lua" },
|
|
}),
|
|
require("rustaceanvim.neotest"),
|
|
}
|
|
return opts
|
|
end,
|
|
config = function(_, opts)
|
|
require("neotest").setup(opts)
|
|
end,
|
|
}
|