From d94593789f71c5b3806bd2913778366c031c9c80 Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Mon, 10 Jun 2024 08:05:02 +0200 Subject: [PATCH] refactor(plugins/telescope): move notifications keymap to notify --- plugins/notify.nix | 6 ++++++ plugins/telescope.nix | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/notify.nix b/plugins/notify.nix index 74cefec..fd5d7c1 100644 --- a/plugins/notify.nix +++ b/plugins/notify.nix @@ -40,5 +40,11 @@ action.__raw = "function() require('notify').dismiss { pending = true, silent = true } end"; options.desc = "Dismiss notifications"; } + { + mode = "n"; + key = "fn"; + action.__raw = "function() TelescopeWithTheme('notify', {}, 'notify') end"; + options.desc = "Find notifications"; + } ]; } diff --git a/plugins/telescope.nix b/plugins/telescope.nix index 00d5714..faa4d37 100644 --- a/plugins/telescope.nix +++ b/plugins/telescope.nix @@ -117,12 +117,6 @@ key = "fk"; fn = "keymaps"; } - { - desc = "Find notifications"; - key = "fn"; - fn = "notify"; - extension = "notify"; - } { desc = "Find history"; key = "fo";