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 <ghostbuster91@users.noreply.github.com>
Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Kasper Kondzielski
2023-04-15 07:18:05 +02:00
committed by GitHub
parent 0a144ba50a
commit 68f485b454

View File

@@ -13,19 +13,13 @@ local modes = {
}
do
local has_notify, notify_plugin = pcall(require, "notify")
local dispatch = function(level, msg)
if level < config.threshold then
return
end
vim.schedule(function()
if has_notify and notify_plugin then
notify_plugin(msg, level, { title = "NvimTree" })
else
vim.notify(string.format("[NvimTree] %s", vim.inspect(msg)), level)
end
vim.notify(msg, level, { title = "NvimTree" })
end)
end