mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
lib/options/mkRaw': handle pluginDefault=null
This commit is contained in:
parent
1702f24074
commit
7500425d31
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ rec {
|
|||
type = types.rawLua;
|
||||
}
|
||||
// lib.optionalAttrs (args ? pluginDefault) {
|
||||
pluginDefault = lib.nixvim.literalLua args.pluginDefault;
|
||||
pluginDefault =
|
||||
if args.pluginDefault == null then null else lib.nixvim.literalLua args.pluginDefault;
|
||||
}
|
||||
);
|
||||
mkRaw = pluginDefault: description: mkRaw' { inherit pluginDefault description; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue