Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Summary opens, but no help #409

Open
rwijtvliet opened this issue May 21, 2024 · 2 comments
Open

[BUG] Summary opens, but no help #409

rwijtvliet opened this issue May 21, 2024 · 2 comments
Assignees

Comments

@rwijtvliet
Copy link

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.

@rwijtvliet
Copy link
Author

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

@codymikol
Copy link
Contributor

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,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants