remove Esc to close notifications

This commit is contained in:
Andy Teijelo 2024-11-08 17:02:52 -05:00
parent bb7147e88b
commit 14a69223ed

View file

@ -121,8 +121,8 @@ keymap("n", "<S-F11>", "<cmd>DapStepOut<CR>")
vim.keymap.set("n", "K", require("noice.lsp").hover, { noremap = true, silent = true })
local function dismiss_notifications()
require("notify").dismiss({ silent = true, pending = true })
vim.cmd("noh")
end
vim.keymap.set("n", "<Esc>", dismiss_notifications, { desc = "Dismiss notifications" })
-- local function dismiss_notifications()
-- require("notify").dismiss({ silent = true, pending = true })
-- vim.cmd("noh")
-- end
-- vim.keymap.set("n", "<Esc>", dismiss_notifications, { desc = "Dismiss notifications" })