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

@@ -1,4 +1,4 @@
local utils = require "nvim-tree.utils"
local notify = require "nvim-tree.notify"
local M = {
SIGN_GROUP = "NvimTreeGitSigns",
@@ -68,7 +68,7 @@ end
local function nil_() end
local function warn_status(git_status)
utils.notify.warn(
notify.warn(
'Unrecognized git state "'
.. git_status
.. '". Please open up an issue on https://github.com/nvim-tree/nvim-tree.lua/issues with this message.'