Skip to content

[lazy.nvim] rustaceanvim.neotest module not found #279

Closed Answered by mrcjkb
LennyLizowzskiy asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

The rustaceanvim.neotest module definitely exists, so this is not a bug. It's an issue with how lazy.nvim loads plugins - I will convert this to a Q&A discussion.

I believe your issue is that you are calling require('rustaceanvim.neotest') when passing it to the opts table. So it gets called at lazy.nvim's plugin spec evaluation time (which is before it has loaded any plugins and I suppose before it overrides the require function to search for plugins to load).

You should be able to work around this either by changing it to

opts = function(_, opts)
  opts.adapters = opts.adapters or {}
  vim.list_extend(opts.adapters, {
    require('rustaceanvim.neotest'),
  })
end

Or replace opts with

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LennyLizowzskiy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #278 on March 09, 2024 07:53.