blink: allow null sources.cmdline

This commit is contained in:
Ching Pei Yang 2024-12-29 02:29:18 +01:00
parent c2185f25df
commit 9be26f2ac3
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -1,6 +1,6 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption literalMD;
inherit (lib.types) listOf str either attrsOf submodule enum anything int;
inherit (lib.types) listOf str either attrsOf submodule enum anything int nullOr;
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
inherit (lib.nvim.binds) mkMappingOption;
inherit (lib.nvim.config) mkBool;
@ -37,9 +37,9 @@ in {
};
cmdline = mkOption {
type = listOf str;
type = nullOr (listOf str);
default = [];
description = "List of sources to enable for cmdline";
description = "List of sources to enable for cmdline. Null means use default source list.";
};
providers = mkOption {