|
@@ -147,6 +147,24 @@ function M.setup()
|
|
|
return
|
|
|
end
|
|
|
|
|
|
+ local status_ok_1, utils = pcall(require, "nvim-tree.utils")
|
|
|
+ if not status_ok_1 then
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
+ local function notify_level()
|
|
|
+ return function(msg)
|
|
|
+ vim.schedule(function()
|
|
|
+ vim.api.nvim_echo({ { msg, "WarningMsg" } }, false, {})
|
|
|
+ end)
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
+ utils.notify.warn = notify_level(vim.log.levels.WARN)
|
|
|
+ utils.notify.error = notify_level(vim.log.levels.ERROR)
|
|
|
+ utils.notify.info = notify_level(vim.log.levels.INFO)
|
|
|
+ utils.notify.debug = notify_level(vim.log.levels.DEBUG)
|
|
|
+
|
|
|
if lvim.builtin.nvimtree._setup_called then
|
|
|
Log:debug "ignoring repeated setup call for nvim-tree, see kyazdani42/nvim-tree.lua#1308"
|
|
|
return
|