vim: add keymap to dismiss notifications

This commit is contained in:
Fernando Schauenburg 2024-02-19 18:09:11 +01:00
parent f1c60d8012
commit 1b4f468324

View file

@ -18,6 +18,7 @@ local lhs, desc = ts.keymap.lhs, ts.keymap.description
M.keys = { M.keys = {
{ '<leader>n', '<cmd>Notifications<cr>', desc = 'Display notification history' }, { '<leader>n', '<cmd>Notifications<cr>', desc = 'Display notification history' },
{ '<c-q>', function() require('notify').dismiss() end, desc = 'Dismiss notifications' },
{ lhs('n'), telescope_notify, desc = desc('[n]otifications') }, { lhs('n'), telescope_notify, desc = desc('[n]otifications') },
} }