mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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 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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue