Skip to content

Commit 0111af0

Browse files
committed
Remove default setting from notify.handler
1 parent 9cd7760 commit 0111af0

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

doc/nvim-tree-lua.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ applying configuration.
440440
},
441441
notify = {
442442
threshold = vim.log.levels.INFO,
443-
handler = "default",
444443
},
445444
ui = {
446445
confirm = {
@@ -1226,10 +1225,10 @@ Configuration for notification.
12261225
`DEBUG:` not used.
12271226

12281227
*nvim-tree.notify.handler*
1229-
Change the default notification handler, can be a string `"default"` or a function.
1230-
The default handler will check if the nvim-notify plugin is present on the
1231-
runtime path and use it, otherwise it will fallback to use `vim.notify`.
1232-
Type: `string` | `function`, Default: `"default"`
1228+
Change the default notification handler. The default handler will
1229+
check if the nvim-notify plugin is present on the runtime path and
1230+
use it, otherwise it will fallback to use `vim.notify`.
1231+
Type: `function`
12331232

12341233
The function will be called with following parameters:
12351234

lua/nvim-tree.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
629629
},
630630
notify = {
631631
threshold = vim.log.levels.INFO,
632-
handler = "default",
633632
},
634633
ui = {
635634
confirm = {
@@ -664,6 +663,7 @@ end
664663

665664
local FIELD_SKIP_VALIDATE = {
666665
open_win_config = true,
666+
handler = true,
667667
}
668668

669669
local FIELD_OVERRIDE_TYPECHECK = {
@@ -675,7 +675,6 @@ local FIELD_OVERRIDE_TYPECHECK = {
675675
sort_by = { ["function"] = true, string = true },
676676
root_folder_label = { ["function"] = true, string = true },
677677
picker = { ["function"] = true, string = true },
678-
handler = { ["function"] = true, string = true },
679678
}
680679

681680
local function validate_options(conf)

0 commit comments

Comments
 (0)