mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 04:35:08 +02:00
Enable creation of other config files than init.lua (#246)
This commit is contained in:
parent
bc468178ae
commit
a6eec507cc
8 changed files with 283 additions and 115 deletions
|
@ -5,19 +5,19 @@ modules: {
|
|||
...
|
||||
} @ args: let
|
||||
inherit (lib) mkEnableOption mkOption mkOptionType mkForce mkMerge mkIf types;
|
||||
shared = import ./_shared.nix args;
|
||||
shared = import ./_shared.nix modules args;
|
||||
cfg = config.programs.nixvim;
|
||||
in {
|
||||
options = {
|
||||
programs.nixvim = mkOption {
|
||||
default = {};
|
||||
type = types.submodule ((modules pkgs)
|
||||
++ [
|
||||
type = types.submodule ([
|
||||
{
|
||||
options.enable = mkEnableOption "nixvim";
|
||||
config.wrapRc = mkForce true;
|
||||
}
|
||||
]);
|
||||
]
|
||||
++ shared.topLevelModules);
|
||||
};
|
||||
nixvim.helpers = shared.helpers;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue