From 22b587f3dc5c040eb1916aa2a67868f1918d9d17 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 3 Feb 2024 20:04:01 +0100 Subject: [PATCH] helpers/types: expose isRawType --- lib/types.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types.nix b/lib/types.nix index 83221968..b283766d 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -6,8 +6,6 @@ with lib; with nixvimOptions; with lib.types; let - isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw; - strLikeType = description: mkOptionType { name = "str"; @@ -18,6 +16,8 @@ with lib.types; let }; in rec { + isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw; + rawLua = mkOptionType { name = "rawLua"; description = "raw lua code";