Loading
neovimUtils.makeVimPackageInfo: add lua dependencies
Neovim currently resolves its lua dependencies at buildtime in the wrapper, which causes some trouble as it's difficult to debug or replicate the result outside the nixpkgs wrapper. This change makes lua dependencies available at runtime. We can thus build a luaEnv to avoid building a long LUA_PATH which can help with runtime perf. The drawback is that we now need to engrave in nix the default LUA_PATH for the various lua interpreters. This is what I tried to avoid at first but this proves annoying. As far as neovim is concerned, we only care about the lua 5.1 and luajit interpreters whose defaults only slightly differ for cpath IIRC. So it should mostly transparent except for one or two plugins in which case we can adapt the lua code.