diff --git a/README.md b/README.md index 8040133..351e811 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,9 @@ require("various-textobjs").setup { -- display notification if a text object is not found notifyNotFound = true, + + -- only relevant when using notification plugins like `nvim-notify` + notificationIcon = "󰠱" } ``` diff --git a/lua/various-textobjs/utils.lua b/lua/various-textobjs/utils.lua index 29760e1..74d9656 100644 --- a/lua/various-textobjs/utils.lua +++ b/lua/various-textobjs/utils.lua @@ -26,7 +26,8 @@ function M.notify(msg, level) if not require("various-textobjs.config").config.notifyNotFound then return end level = "warn" end - vim.notify(msg, vim.log.levels[level:upper()], { title = "nvim-various-textobjs" }) + local icon = require("various-textobjs.config").config.notificationIcon + vim.notify(msg, vim.log.levels[level:upper()], { title = "nvim-various-textobjs", icon = icon }) end ---notification when no textobj could be found