]> git.rmz.io Git - dotfiles.git/commitdiff
lazyvim: absorb snacks notifier
authorSamir Benmendil <me@rmz.io>
Sun, 9 Feb 2025 15:28:49 +0000 (15:28 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 2 Mar 2025 15:44:14 +0000 (15:44 +0000)
nvim/lua/plugins/snacks.lua

index 1d62dd1fb17c775e5c238a707935625807fb805d..70021772f2a22e279ab0b5e223095150d2ea18dc 100644 (file)
@@ -58,5 +58,22 @@ return {
         },
       },
     },
         },
       },
     },
+  },
+  { "folke/snacks.nvim",
+    opts = {
+      notifier = { enabled = true },
+    },
+    -- stylua: ignore
+    keys = {
+      -- TODO: review after picking picker (ha)
+      { "<leader>n", function()
+        if Snacks.config.picker and Snacks.config.picker.enabled then
+          Snacks.picker.notifications()
+        else
+          Snacks.notifier.show_history()
+        end
+      end, desc = "Notification History" },
+      { "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
+    },
   }
 }
   }
 }