mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
flake/legacyPackages: simplify makeNixvim
, making it more powerful
Rather than nesting it as `config`, pass `makeNixvim`'s argument through directly as a module. This not only simplifies the implementation, but allows users to use `makeNixvim` for any scenario where `makeNixvimWithModule` would normally be required.
This commit is contained in:
parent
10f64e6c96
commit
c062b976ef
2 changed files with 4 additions and 9 deletions
|
@ -9,13 +9,7 @@
|
|||
{
|
||||
legacyPackages = rec {
|
||||
inherit makeNixvimWithModule;
|
||||
makeNixvim =
|
||||
configuration:
|
||||
makeNixvimWithModule {
|
||||
module = {
|
||||
config = configuration;
|
||||
};
|
||||
};
|
||||
makeNixvim = module: makeNixvimWithModule { inherit module; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue