vim-settings/neovim/lua/plugins/notify.lua

21 lines
542 B
Lua
Raw Normal View History

2022-10-14 21:41:14 +00:00
local utils = require("utils")
2024-11-27 20:12:39 +00:00
local notify = require("notify")
notify.setup({
2022-10-14 21:41:14 +00:00
icons = {
ERROR = utils.diagnostic_signs.Error,
WARN = utils.diagnostic_signs.Warn,
DEBUG = utils.diagnostic_signs.Hint,
TRACE = utils.diagnostic_signs.Pencil,
INFO = utils.diagnostic_signs.Info,
},
})
2024-11-27 20:12:39 +00:00
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)