feat(notify): switch all print/nvim_*write statements to utils.notify

This commit is contained in:
kiyan
2022-07-18 14:04:48 +02:00
parent 21fadc1f38
commit 18447132fc
9 changed files with 23 additions and 25 deletions

View File

@@ -1,4 +1,3 @@
local api = vim.api
local uv = vim.loop
local utils = require "nvim-tree.utils"
@@ -23,7 +22,7 @@ function M.reload(node, status)
local cwd = node.link_to or node.absolute_path
local handle = uv.fs_scandir(cwd)
if type(handle) == "string" then
api.nvim_err_writeln(handle)
utils.notify.error(handle)
return
end