diff --git a/neovim/lua/plugins/notify.lua b/neovim/lua/plugins/notify.lua index eb3c1d7..b701ae4 100644 --- a/neovim/lua/plugins/notify.lua +++ b/neovim/lua/plugins/notify.lua @@ -1,5 +1,8 @@ local utils = require("utils") -require("notify").setup({ + +local notify = require("notify") + +notify.setup({ icons = { ERROR = utils.diagnostic_signs.Error, WARN = utils.diagnostic_signs.Warn, @@ -8,4 +11,10 @@ require("notify").setup({ INFO = utils.diagnostic_signs.Info, }, }) -vim.notify = require("notify") + +vim.notify = notify + +-- Add Telescope keymap +utils.try_require("telescope", function(telescope) + utils.keymap_set("n", "fn", telescope.extensions.notify.notify, { desc = "Find notifications" }) +end)