blob: 4569527e33502895f88eda307b3eba06a06d2fbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
local TITLE = "nvim-lsp-installer"
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
end
|