]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/snacks.lua
lazyvim: absorb snacks notifier
[dotfiles.git] / nvim / lua / plugins / snacks.lua
index 9a6d2feaa1275e2412b7a2f7a36744748de9f95f..70021772f2a22e279ab0b5e223095150d2ea18dc 100644 (file)
@@ -54,10 +54,26 @@ return {
             { icon = " ", key = "s", desc = "Restore Session", section = "session" },
             { icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
             { icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" },
-            { icon = " ", key = "q", desc = "Quit", action = ":qa" },
           },
         },
       },
     },
+  },
+  { "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" },
+    },
   }
 }