Small improvements for notify configs

This commit is contained in:
ViViDboarder 2024-11-27 12:12:39 -08:00
parent 713c352834
commit 0c5367a1a8

View File

@ -1,5 +1,8 @@
local utils = require("utils") local utils = require("utils")
require("notify").setup({
local notify = require("notify")
notify.setup({
icons = { icons = {
ERROR = utils.diagnostic_signs.Error, ERROR = utils.diagnostic_signs.Error,
WARN = utils.diagnostic_signs.Warn, WARN = utils.diagnostic_signs.Warn,
@ -8,4 +11,10 @@ require("notify").setup({
INFO = utils.diagnostic_signs.Info, 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", "<leader>fn", telescope.extensions.notify.notify, { desc = "Find notifications" })
end)