mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
plugins: use LogLevel where possible
This commit is contained in:
parent
a70947a563
commit
dbcd314708
7 changed files with 45 additions and 61 deletions
|
@ -136,15 +136,11 @@ with lib; {
|
|||
(see `|standard-path|`).
|
||||
'';
|
||||
|
||||
level =
|
||||
helpers.defaultNullOpts.mkEnum
|
||||
["debug" "error" "info" "trace" "warn" "off"]
|
||||
"warn"
|
||||
''
|
||||
Only messages equal to or above this value will be logged.
|
||||
The default is to log warnings or above.
|
||||
See `|log_levels|` for possible values.
|
||||
'';
|
||||
level = helpers.defaultNullOpts.mkLogLevel "warn" ''
|
||||
Only messages equal to or above this value will be logged.
|
||||
The default is to log warnings or above.
|
||||
See `|log_levels|` for possible values.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -210,10 +206,10 @@ with lib; {
|
|||
blacklist
|
||||
;
|
||||
log = with log; {
|
||||
inherit file;
|
||||
level =
|
||||
helpers.ifNonNull' level
|
||||
(helpers.mkRaw "vim.log.levels.${strings.toUpper level}");
|
||||
inherit
|
||||
file
|
||||
level
|
||||
;
|
||||
};
|
||||
}
|
||||
// cfg.extraOptions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue