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;
nullOr
(
either ints.unsigned
(
enum
["off" "error" "warn" "info" "debug" "trace"]
)
either
ints.unsigned
nixvimTypes.logLevel
);
default = null;
apply =

View file

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