jordanisaacs / neovim-flake

Nix flake for neovim with configuration
https://jordanisaacs.github.io/neovim-flake
MIT License
259 stars 57 forks source link

Switch to putting config in a directory #43

Open purefn opened 1 year ago

purefn commented 1 year ago

Instead of using wrapRc to reference to add the -u argument to neovim, we add the directory to the XDG_CONFIG_DIRS, which neovim will read on startup.

This allows us to do a few nice things:

jordanisaacs commented 1 year ago

Sorry for the delayed response. This is an interesting feature which I am open to merging as an option that is by default disabled. This is because I see the primary use case of this flake being completely reproducible configurations that do not leak into your environment, hence the use of wrapRc.

But I see why someone may want to use XDG_CONFIG_DIRS, which is why I would be open to merging it as a configurable option.