Problems adding neotest to the neovim template #322
Replies: 1 comment
-
|
You have it installed lazily via nix, so it is in a Thus, it is not yet on the Either install it as a startup plugin, or packadd it first (or put it in an lze spec which will packadd it for you on some trigger of your choosing) In the spec you added it to, the items in the list default to config.specs.general = {
lazy = true;
data = with pkgs.vimPlugins; [ some list of plugins ];
};You can override it per item config.specs.general = {
lazy = true;
data = with pkgs.vimPlugins; [ some list of plugins { lazy = false; data = plugin-for-start-instead; } ];
};Or make a list which does not default to config.specs.startupplugins = {
# lazy = false; # <- the default, unless you have been messing with the global default via specMods
data = with pkgs.vimPlugins; [ some list of plugins ];
};or equivalently, because config.specs.startupplugins = with pkgs.vimPlugins; [ some list of plugins ];
That is just However, notice that it is in the And no, claude is definitely not correct. The item you are installing is from the It is correct about it not being on the If the item you were installing were NOT in the and if it were a full program you wanted to add to But that is also not the case here (although using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Heads up: I'm a nix noob and a neovim noob. I'm probably doing something stupid, but I've been struggling for a long time. I've tried to make a minimal example of what goes wrong, and one that is as foolproof as I can make it by not relying on any lazy loading magic. Here's what I've changed compared to what's in
templates/neovim:Running
nix developsucceeds without problems. Then I runnvim, and I get this error:To find out where it should have looked, I looked at the output of the
:lua nixInfo.lze.debug.display(nixInfo.plugins)command:Notice that the neotest key is different from all the other plugins, in that it's not wrapped in square brackets and double quotes. Looking at that nix store path, the plugin files appear to be there, but for some reason nvim doesn't find them:
I've had a long debugging session with Claude Opus, and I thought it might be relevant to know what it eventually concluded:
Is Claude right? It suggested several workarounds but none of them solved the issue. How can I make the neotest plugin work?
Thank you for reading and considering this issue.
Beta Was this translation helpful? Give feedback.
All reactions