-
|
Hi, I recently installed nixCats and it is working well so far. I have one question though about the following nix config that I was using: This function allows nix to manage config files without copying them to the nix store. They are loaded directly from the local file system in the git repo. This is useful for apps which write directly to the config files. In this case, lazy.nvim tries to write to But does nixCats still work with this settings, or does it copy the neovim lua configuration to the nix store regardless? If so, then I guess I should just link the lua config to my home directory with the regular I am not currently seeing any errors with lazy.nvim being able to write to Many thanks for any clarification! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
No, setting unwrappedCfgDir to point somewhere is basically the same thing. mkOutOfStoreSymlink writes only a symlink to an out of store file into the store nixCats loads your configuration, and you can write any path into the store for it to load, inside or outside of the store. No need to point it at an in-store symlink to somewhere out of the store, you can just point it there flat-out. However the luaPath value accepts only store paths, there is an unwrappedCfgPath setting for out of store paths, which you can swap between via nix, or define a variable to define to use to swap between them (see :h
In short, you dont need to do that, and you can achieve the same stuff with What The whole idea being that it launches stuff EXACTLY the same way regardless of where the config is, making it easy to "unwrap" the config, test lua changes, and then "wrap" it again and have it work exactly the same but now properly bundled again. |
Beta Was this translation helpful? Give feedback.
Yep!
Exactly correct.
luaPath = ../../../dots/nvim;This accepts only store paths. paths like
../../../dots/nvimare copied to the store (assuming they are within your nix config)This is done by nix, nixCats simply checks that it is a store path first for that option.
wrapRc = f…