From 68f485b4542abd3912299b40b9ff39a834365567 Mon Sep 17 00:00:00 2001 From: Kasper Kondzielski Date: Sat, 15 Apr 2023 07:18:05 +0200 Subject: [PATCH] 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 Co-authored-by: Alexander Courtis --- lua/nvim-tree/notify.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/nvim-tree/notify.lua b/lua/nvim-tree/notify.lua index 6138d630..e42a4d86 100644 --- a/lua/nvim-tree/notify.lua +++ b/lua/nvim-tree/notify.lua @@ -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