plugins: use LogLevel where possible

This commit is contained in:
Gaetan Lepage 2023-11-30 15:50:24 +01:00 committed by Gaétan Lepage
parent a70947a563
commit dbcd314708
7 changed files with 45 additions and 61 deletions

View file

@ -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; {