mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
added more keymaps for notifications stuff
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user