Under what conditions does lazy.nvim install into ~/.local/share/*/lazy? #269
Replies: 1 comment 5 replies
-
So, nixCats provides a small wrapper you can add via the luaUtils template here is the function You call it instead of the require('lazy').setup function, and it is the same, other than taking 1 extra argument as the first argument. What it will do is set a few settings so that lazy.nvim will look for plugins in their dev paths first, and then call the lazy setup function. It does these things:
In practice, this means that as long as the pname of the plugin from nix matches the last part of the url, lazy.nvim will get the one in the path from nix, and treesitter parsers provided from nix that have been passed through if the pname of the plugin from nix does not match the one from lazy.nvim, lazy.nvim will attempt to download it. If this happens, you can set the You can see the names provided from nix by running |
Beta Was this translation helpful? Give feedback.
-
I tested out nixCats w/ lazy wrapper on a couple and I opened up :Lazy to verify install directories. I noticed it showed my theme, kanagawa.nvim, as installed in ~/.local/share/nixCats/lazy instead of the plugin package directory in the nix store. The other plugins it shows them as installed in the store. Is this expected behavior?
Also I think if I go to the Update tab in :Lazy it will then install all the plugins into my system nvim data directory ~/.local/share/nvim/lazy... and then shows those that location as the install directory. Does this mean we should avoid accidentally updating plugins through lazy?
I'd greatly appreciate any clarification so I know what to be aware about when managing my installs with nixCats + lazy. Just trying to migrate my current setup at the moment but in the future I will definitely consider moving to lz/lze . Thank you!
Beta Was this translation helpful? Give feedback.
All reactions