From 0c5367a1a8ada37d870c50a7272e3edd271323ff Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 27 Nov 2024 12:12:39 -0800 Subject: [PATCH] Small improvements for notify configs --- neovim/lua/plugins/notify.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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)