mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
lib/types: factor out logLevel enum for standalone use
This commit is contained in:
parent
f285a958c0
commit
d348bb3e03
2 changed files with 5 additions and 5 deletions
|
@ -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 =
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue