added more keymaps for notifications stuff

This commit is contained in:
aminnairi
2023-12-23 22:01:43 +01:00
parent 4afdca9c19
commit ab5bfb4723
+31 -1
View File
@@ -2,9 +2,39 @@ return {
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
event = "VeryLazy", event = "VeryLazy",
config = function() config = function()
vim.notify = require("notify") local notify = require("notify")
vim.notify = notify
require("which-key").register({
["<leader>u"] = {
name = "User Interface",
n = {
name = "Notification",
e = {
function()
vim.notify = notify
end,
"Enable notifications"
},
d = {
function()
vim.notify = function() end
end,
"Disable notifications"
},
l = {
function()
require("telescope").extensions.notify.notify()
end,
"List notifications"
}
}
}
})
require("notify.config").setup({ require("notify.config").setup({
enabled = false,
stages = "fade_in_slide_out", stages = "fade_in_slide_out",
timeout = 5000, timeout = 5000,
background_colour = "#1e222a", background_colour = "#1e222a",