aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/notify.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/notify.lua')
-rw-r--r--lua/nvim-lsp-installer/notify.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/notify.lua b/lua/nvim-lsp-installer/notify.lua
new file mode 100644
index 00000000..ef6db61b
--- /dev/null
+++ b/lua/nvim-lsp-installer/notify.lua
@@ -0,0 +1,8 @@
+local TITLE = "nvim-lsp-installer"
+
+return function(msg, level)
+ level = level or vim.log.levels.INFO
+ vim.notify(("%s: %s"):format(TITLE, msg), level, {
+ title = TITLE,
+ })
+end