mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58: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
|
@ -812,7 +812,7 @@ in {
|
|||
};
|
||||
|
||||
notify = {
|
||||
threshold = helpers.defaultNullOpts.mkEnum ["error" "warning" "info" "debug"] "info" ''
|
||||
threshold = helpers.defaultNullOpts.mkLogLevel "info" ''
|
||||
Specify minimum notification level, uses the values from |vim.log.levels|
|
||||
|
||||
- `error`: hard errors e.g. failure to read from the file system.
|
||||
|
@ -1010,9 +1010,7 @@ in {
|
|||
};
|
||||
inherit tab;
|
||||
notify = with notify; {
|
||||
threshold =
|
||||
ifNonNull' cfg.notify.threshold
|
||||
(helpers.mkRaw "vim.log.levels.${strings.toUpper notify.threshold}");
|
||||
inherit threshold;
|
||||
};
|
||||
inherit ui;
|
||||
log = with log; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue