Closed pierrot-lc closed 1 month ago
Indeed I know about the issue. I have it working locally and I am upstreaming the fixes hopefully before 24.05. I will keep you informed.
With nixvim the workarround doesn't seems to work.
Should be fixed by #309762
The PR has been merged. @pierrot-lc feel free to test :)
The PR has been merged. @pierrot-lc feel free to test :)
Sadly it does not seem to be fixed. The warning is still raised. I think the issue is related to the way luasnip is installed by nix. The dependency jsregexp
seems to be used here but it is still not found in the lua environment of nvim. I do not fully understand the way lua packages are built, so maybe there's something that I miss somewhere.
We might need to wait for @teto's fix to get into master and/or unstable.
Hi all, just a quick comment to say that now LuaSnip is shipped with jsregexp (thanks!). If I understand correctly, it works for this plugin because it is declared as a luarocks lib and is wrapped around it.
Do you think we should do the same thing for other common vim plugins (such as Neorg, which has a lot of dependencies as well)? I saw the development of rocks.nvim and I wonder if we should automatically detect the dependencies declared by plugins that way?
Do you think we should do the same thing for other common vim plugins (such as Neorg, which has a lot of dependencies as well)? I saw the development of rocks.nvim and I wonder if we should automatically detect the dependencies declared by plugins that way?
that's what we're working on 😄
that's what we're working on 😄
Amazing 😄 , thanks all of you for your hard work. I'm closing this since the original issue is fixed!
Describe the bug
I installed
vimPlugins.luasnip
. When running:checkhealth
, luasnip says that the dependencyjsregexp
is not found.Steps To Reproduce
Steps to reproduce the behavior:
vimPlugins.luasnip
:checkhealth
commandFor example, using home-manager:
Expected behavior
When installing the plugin, the lua package of the plugin is used instead (see here). That
luasnip
package should come withjsregexp
as described in its nix expression.Screenshots
Additional context
I noticed that the lua
jsregexp
package is indeed built by nix, along with the lualuasnip
package. So the error may come from the package not being added to the neovim lua runtime path.The error disappear when adding
jsregexp
inextraLuaPackages
like so:I managed to reproduce the error using kickstart-nvim.nix and nixvim as well.
Notify maintainers
@teto @GaetanLepage @mrcjkb
Metadata
Add a :+1: reaction to issues you find important.