From 18e4810a86f0d88d9a6ded3582510c9086c1eb09 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 29 Dec 2024 02:29:18 +0100 Subject: [PATCH] blink: allow null sources.cmdline --- modules/plugins/completion/blink-cmp/blink-cmp.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/plugins/completion/blink-cmp/blink-cmp.nix b/modules/plugins/completion/blink-cmp/blink-cmp.nix index d5839201..021441b2 100644 --- a/modules/plugins/completion/blink-cmp/blink-cmp.nix +++ b/modules/plugins/completion/blink-cmp/blink-cmp.nix @@ -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 {