Open purefn opened 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.
Instead of using
wrapRc
to reference to add the-u
argument to neovim, we add the directory to theXDG_CONFIG_DIRS
, which neovim will read on startup.This allows us to do a few nice things:
flake/lsp
, which contains the functions used foron_attach
and thecapabilities
. Users can also add their own modules viavim.lua.modules.mymodule = "<code>";
.ftplugin/<lang>.lua
. Thenix
config was migrated to use this approach as an example.