Skip to content

Commit 68f485b

Browse files
Kasper Kondzielskighostbuster91alex-courtis
authored
fix(#1697): remove notify plugin auto-detection (#2135)
* feat: Remove nvim-notify auto-detection * feat: Remove nvim-notify auto-detection: stylua --------- Co-authored-by: ghostbuster91 <[email protected]> Co-authored-by: Alexander Courtis <[email protected]>
1 parent 0a144ba commit 68f485b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lua/nvim-tree/notify.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,13 @@ local modes = {
1313
}
1414

1515
do
16-
local has_notify, notify_plugin = pcall(require, "notify")
17-
1816
local dispatch = function(level, msg)
1917
if level < config.threshold then
2018
return
2119
end
2220

2321
vim.schedule(function()
24-
if has_notify and notify_plugin then
25-
notify_plugin(msg, level, { title = "NvimTree" })
26-
else
27-
vim.notify(string.format("[NvimTree] %s", vim.inspect(msg)), level)
28-
end
22+
vim.notify(msg, level, { title = "NvimTree" })
2923
end)
3024
end
3125

0 commit comments

Comments
 (0)