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