Some observed issues using Lazy in a nix flaked install of my nvim config:
Lazy loaded User autogroup in init.lua does not use the global rtp
Lazy's lockfile goes into ~/.config/nvim, meaning it isn't using the lockfile checked into source
In devshell I had set XDG home to the project dir, but since changed it because it obscured rtp errors.
Now the lockfile requires manual updating
When a new plugin gets installed there is a strange error that seems
New plugin installed error
Error detected while processing /nix/store/0mw452lz8bb292n5n5axislws3yby0yg-init.vim:
line 17:
No specs found for module plugins
Then Lazy wants to clean all plugins. But if I quit nvim and open it back up everything works as expected. So this is mildly annoying but not a show stopped
Solutions?
Try to create a nix function or something for Lazy plugins? (alternative to existing nix vim plugin option)
Set explicit versions instead of using a lockfile?
Integrate with home-manager?
This does fix some problems, but I think having this be runnable as a standalone is really neat.
Some observed issues using Lazy in a nix flaked install of my nvim config:
init.lua
does not use the global rtp~/.config/nvim
, meaning it isn't using the lockfile checked into sourceNew plugin installed error
Then Lazy wants to
clean
all plugins. But if I quit nvim and open it back up everything works as expected. So this is mildly annoying but not a show stoppedSolutions?