feat(notify): add notify.threshold (#1693)

* feat: configurable notification level

add `notify.threshold` to setup opts

* feat: configurable notification level: add threshold example doc

* feat: configurable notification level: log always comes last

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
kylo252
2022-11-01 00:24:40 +01:00
committed by GitHub
parent ada2c6441d
commit 6ca6f99e76
19 changed files with 120 additions and 66 deletions

View File

@@ -373,6 +373,9 @@ Subsequent calls to setup will replace the previous configuration.
watcher = false,
},
},
notify = {
threshold = vim.log.levels.INFO,
},
} -- END_DEFAULT_OPTS
<
@@ -992,6 +995,18 @@ The filter can be cleared with the `F` key by default.
Whether to filter folders or not.
Type: `boolean`, Default: `true`
*nvim-tree.notify*
Configuration for notification.
*nvim-tree.notify.threshold*
Specify minimum notification level, uses the values from |vim.log.levels|
Type: `enum`, Default: `vim.log.levels.INFO`
`ERROR`: hard errors e.g. failure to read from the file system.
`WARNING`: non-fatal errors e.g. unable to system open a file.
`INFO:` information only e.g. file copy path confirmation.
`DEBUG:` not used.
*nvim-tree.log*
Configuration for diagnostic logging.