blob: 010ba31cbda493b176dd976f5b5ccf27723e062d (
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, notify = pcall(require, "notify")
level = level or vim.log.levels.INFO
if has_notify_plugin then
notify(msg, level, {
title = TITLE,
})
else
vim.notify(("[%s] %s"):format(TITLE, msg), level)
end
end
|