From 532f7256b1daa0a416f7a228af03da4e59ac6ae9 Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 19 Jan 2022 13:12:36 +1100 Subject: [PATCH] issue #71, change warn/info/error to notify --- lua/go/utils.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/go/utils.lua b/lua/go/utils.lua index a1fc8f2..95db3b5 100644 --- a/lua/go/utils.lua +++ b/lua/go/utils.lua @@ -351,7 +351,7 @@ function util.load_plugin(name, modulename) has, plugin = pcall(require, modulename) if not has then - util.warn("plugin failed to load " .. name) + util.info("plugin " .. name .. " not loaded ") return nil end return plugin @@ -396,15 +396,15 @@ end -- log and messages function util.warn(msg) - vim.api.nvim_echo({ { "WRN: " .. msg, "WarningMsg" } }, true, {}) + vim.notify("WARN: " .. msg, vim.lsp.log_levels.WARN) end function util.error(msg) - vim.api.nvim_echo({ { "ERR: " .. msg, "ErrorMsg" } }, true, {}) + vim.notify("ERR: " .. msg, vim.lsp.log_levels.ERROR) end function util.info(msg) - vim.api.nvim_echo({ { "Info: " .. msg } }, true, {}) + vim.notify("INF: " .. msg, vim.lsp.log_levels.INFO) end function util.rel_path()