neotest
neotest copied to clipboard
[BUG] Summary opens, but no help
NeoVim Version 0.9.5
Describe the bug
I am trying to get help for the summary (concretely, I'm trying to set the mappings). The summary buffer/panel opens, but I cannot get any help (trying :h neotest.summary
)
To Reproduce
Please provide a minimal init.lua
to reproduce which can be run as the following:
nvim --clean -u minimal.lua
You can edit the following example file to include your adapters and other required setup.
vim.opt.runtimepath:remove(vim.fn.expand("~/.config/nvim"))
vim.opt.packpath:remove(vim.fn.expand("~/.local/share/nvim/site"))
local lazypath = "/tmp/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
"nvim-neotest/neotest",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
-- Install adapters here
},
config = function()
-- Install any required parsers
require("nvim-treesitter.configs").setup({
ensure_installed = {},
})
require("neotest").setup({
-- Add adapters to the list
adapters = {},
})
end,
})
Steps to reproduce the behavior:
-
Open the summary. Note that all tests are shown in tree view.
-
Try to access the summary's help:
:h neotest.summary
as per the documentation.
Please provide example test files to reproduce.
Expected behavior Help/documentation window is shown.