mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
helpers/types: expose isRawType
This commit is contained in:
parent
3543c84062
commit
22b587f3dc
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,6 @@
|
||||||
with lib;
|
with lib;
|
||||||
with nixvimOptions;
|
with nixvimOptions;
|
||||||
with lib.types; let
|
with lib.types; let
|
||||||
isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw;
|
|
||||||
|
|
||||||
strLikeType = description:
|
strLikeType = description:
|
||||||
mkOptionType {
|
mkOptionType {
|
||||||
name = "str";
|
name = "str";
|
||||||
|
@ -18,6 +16,8 @@ with lib.types; let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw;
|
||||||
|
|
||||||
rawLua = mkOptionType {
|
rawLua = mkOptionType {
|
||||||
name = "rawLua";
|
name = "rawLua";
|
||||||
description = "raw lua code";
|
description = "raw lua code";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue