From 1d8724144cef98dad6638e0b6333cc84d0b2f5c3 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Thu, 24 Apr 2025 17:53:35 +0100 Subject: [PATCH] lib/options: add TODO regarding `lua-types` `defaultNullOpts` is generally used for representing lua-options. We should probably a) rename it something like `luaOptions` and switch out the primitive types to use the new `lua-types`. --- lib/options.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/options.nix b/lib/options.nix index 233c47a6..2a36b66c 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -114,6 +114,7 @@ rec { { type, ... }@args: mkNullOrOption' (args // { type = with types; either strLuaFn type; }); mkNullOrStrLuaFnOr = type: description: mkNullOrStrLuaFnOr' { inherit type description; }; + # TODO: use lib.nixvim.lua-types defaultNullOpts = let # Ensures that default is null and defaultText is not set