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

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