chore: move nvim-tree.utils.warn -> notify.warn

add notify.error and notify.info
This commit is contained in:
kiyan
2022-07-18 13:46:11 +02:00
parent ec530e73be
commit 21fadc1f38
12 changed files with 40 additions and 29 deletions

View File

@@ -640,13 +640,13 @@ local function validate_options(conf)
validate(conf, DEFAULT_OPTS, "")
if msg then
utils.warn(msg .. " | see :help nvim-tree-setup for available configuration options")
utils.notify.warn(msg .. " | see :help nvim-tree-setup for available configuration options")
end
end
function M.setup(conf)
if vim.fn.has "nvim-0.7" == 0 then
utils.warn "nvim-tree.lua requires Neovim 0.7 or higher"
utils.notify.warn "nvim-tree.lua requires Neovim 0.7 or higher"
return
end