enable lua function calls in cmd definition

This commit is contained in:
sjcobb 2025-05-30 13:27:07 +01:00
commit 59f89ff96f

View file

@ -1,7 +1,7 @@
{lib}: let
inherit (builtins) isString getAttr;
inherit (lib.options) mkOption;
inherit (lib.types) listOf bool str submodule attrsOf anything either nullOr;
inherit (lib.types) listOf bool str submodule attrsOf anything either nullOr oneOf;
inherit (lib.nvim.attrsets) mapListToAttrs;
inherit (lib.nvim.types) luaInline;
in {
@ -62,7 +62,7 @@ in {
};
cmd = mkOption {
type = nullOr (listOf str);
type = nullOr (listOf (oneOf [str luaInline]));
default = null;
description = "Command used to start the LSP server";
};