update dismiss notifications to work with Snacks
This commit is contained in:
parent
14a69223ed
commit
d1ce6eeb3d
3 changed files with 7 additions and 12 deletions
|
@ -27,7 +27,7 @@
|
|||
"mini.indentscope": { "branch": "main", "commit": "da9af64649e114aa79480c238fd23f6524bc0903" },
|
||||
"mini.nvim": { "branch": "main", "commit": "998cfcf1fdd0a6830d0fc35f1c054a6f55de1e7f" },
|
||||
"mini.surround": { "branch": "main", "commit": "48a9795c9d352c771e1ab5dedab6063c0a2df037" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
|
||||
"neo-tree.nvim": { "branch": "v2.x", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
|
||||
"noice.nvim": { "branch": "main", "commit": "d9328ef903168b6f52385a751eb384ae7e906c6f" },
|
||||
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
|
||||
"nvim-ansible": { "branch": "main", "commit": "44dabdaa8a9193b7f564a8408ed6d7107705030a" },
|
||||
|
|
|
@ -121,8 +121,9 @@ keymap("n", "<S-F11>", "<cmd>DapStepOut<CR>")
|
|||
|
||||
vim.keymap.set("n", "K", require("noice.lsp").hover, { noremap = true, silent = true })
|
||||
|
||||
-- local function 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" })
|
||||
Snacks.notifier.hide()
|
||||
vim.cmd("noh")
|
||||
end
|
||||
vim.keymap.set("n", "<Esc>", dismiss_notifications, { desc = "Dismiss notifications" })
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
return {
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = { }
|
||||
}
|
Loading…
Reference in a new issue