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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user