-
Hi there! I have an nvim configuration that uses nfnl, and in particular makes use of the nfnl standard library. My plugins configuration can't access the nfnl standard library unless the nfnl plugin is already installed! So packer completely fails to start, crashing with a bunch of errors about I had to go back to the first commit where I installed nfnl (before I started relying on the standard library) and do a PackerSync to get nfnl installed. Then going back to the latest commit, everything worked fine. Does anyone have any experience dealing with this problem? Are there any recommended patterns, before I go off and start trying to solve it on my own? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Oh! You're very right! I've run into this with Aniseed and the way I got around it was basically to have a check in the entrypoint ( You could vendor the nfnl library into your repo (I'm sort of pushing "vendoring Lua for Neovim things is good and fine actually" a lot right now) but that is a little funny feeling. I'll have a think about this / put together a little bootstrap snippet soon or someone else can beat me to it. I think since nfnl is such a fundamental part of people's Neovim configuration, we need to have a very good paved road for this sort of boot strapping. Or we just make it really simple and vendor things 😅 I might experiment with something using If you're only using one module in one place, that'll work for now really well. If you're using it in more placed Fennel won't dedupe the multiple Just throwing lots of ideas around right now, not settled on what will be the best solution yet. |
Beta Was this translation helpful? Give feedback.
Oh! You're very right! I've run into this with Aniseed and the way I got around it was basically to have a check in the entrypoint (
init.lua
etc) that checked if Aniseed was cloned into my pack path or not. If it wasn't I cloned it on the spot and then let my normal plugin management stuff kick in.You could vendor the nfnl library into your repo (I'm sort of pushing "vendoring Lua for Neovim things is good and fine actually" a lot right now) but that is a little funny feeling.
I'll have a think about this / put together a little bootstrap snippet soon or someone else can beat me to it. I think since nfnl is such a fundamental part of people's Neovim configuration, we need to have a very …