lib/types: factor out logLevel enum for standalone use

This commit is contained in:
Gaetan Lepage 2024-04-07 11:30:24 +02:00
parent f285a958c0
commit d348bb3e03
2 changed files with 5 additions and 5 deletions

View file

@ -193,11 +193,9 @@ with nixvimUtils; rec {
type = with types; type = with types;
nullOr nullOr
( (
either ints.unsigned either
( ints.unsigned
enum nixvimTypes.logLevel
["off" "error" "warn" "info" "debug" "trace"]
)
); );
default = null; default = null;
apply = apply =

View file

@ -38,6 +38,8 @@ in
(listOf (listOf str)) (listOf (listOf str))
]; ];
logLevel = types.enum ["off" "error" "warn" "info" "debug" "trace"];
highlight = types.submodule { highlight = types.submodule {
# Adds flexibility for other keys # Adds flexibility for other keys
freeformType = types.attrs; freeformType = types.attrs;