From 9a306a6be1f4c4a94b56500e7dc7b08cd14dec70 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 17 Oct 2022 22:27:39 +0200 Subject: refactor(notify): remove check for "nvim-notify" (#569) --- lua/mason-core/notify.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lua/mason-core/notify.lua') diff --git a/lua/mason-core/notify.lua b/lua/mason-core/notify.lua index b41c7e64..95408434 100644 --- a/lua/mason-core/notify.lua +++ b/lua/mason-core/notify.lua @@ -1,13 +1,8 @@ local TITLE = "mason.nvim" return function(msg, level) - local has_notify_plugin = pcall(require, "notify") level = level or vim.log.levels.INFO - if has_notify_plugin then - vim.notify(msg, level, { - title = TITLE, - }) - else - vim.notify(("[%s] %s"):format(TITLE, msg), level) - end + vim.notify(msg, level, { + title = TITLE, + }) end -- cgit v1.2.3-70-g09d2