mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
wrappers: expose config
in standalone output (#1356)
This commit is contained in:
parent
14fca449b7
commit
3f7e6ce850
2 changed files with 7 additions and 0 deletions
|
@ -49,3 +49,9 @@ in
|
|||
|
||||
This will generate a `init.lua` that will contain the three comments from each stages.
|
||||
|
||||
## Accessing options used in an existing configuration
|
||||
|
||||
The `config` used to produce a standalone nixvim derivation can be accessed as an attribute on the derivation, similar to `nixvimExtend`.
|
||||
|
||||
This may be useful if you want unrelated parts of your NixOS or home-manager configuration to use the same value as something in your nixvim configuration.
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ default_pkgs: {
|
|||
meta.mainProgram = "nvim";
|
||||
})
|
||||
// {
|
||||
inherit config;
|
||||
nixvimExtend = extension: mkNvim {imports = [mod extension];};
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue