remove Esc to close notifications
This commit is contained in:
parent
bb7147e88b
commit
14a69223ed
1 changed files with 5 additions and 5 deletions
|
@ -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" })
|
||||
|
|
Loading…
Reference in a new issue