nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.12k stars 105 forks source link

[BUG] Summary opens, but no help #409

Open rwijtvliet opened 1 month ago

rwijtvliet commented 1 month ago

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:

Please provide example test files to reproduce.

Expected behavior Help/documentation window is shown.

rwijtvliet commented 1 month ago

Btw, let me know if I'm using it wrong.

codymikol commented 1 month ago

This works fine for me, do you have neotest in a lua file under plugins?

this is what mine looks like

return {
  "nvim-neotest/neotest",
  dependencies = {
    { dir = "~/dev/src/neotest-kotest" },
    "nvim-neotest/nvim-nio",
    "nvim-lua/plenary.nvim",
    "antoinemadec/FixCursorHold.nvim",
    "nvim-treesitter/nvim-treesitter",
    -- "codymikol/neotest-kotest.nvim",
  },
  config = function()
    require("neotest").setup({
      adapters = {
        require("neotest-kotest"),
      },
    })
  end,
}