From 27c34ed6424b27675e3f09969cf39fe578feb64d Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Mon, 12 May 2025 23:47:37 -0700 Subject: [PATCH] Search notifications. --- lazy-lock.json | 1 - lua/config/keys.lua | 1 + lua/plugins/snacks.lua | 1 + lua/plugins/ui.lua | 4 ++-- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 9545143..07db95e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -11,7 +11,6 @@ "nord.nvim": { "branch": "main", "commit": "1ee184dfd06ffadc19b7afc0ba4c5eca92dd836e" }, "nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" }, "nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" }, - "nvim-notify": { "branch": "master", "commit": "b5825cf9ee881dd8e43309c93374ed5b87b7a896" }, "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, "nvim-web-devicons": { "branch": "master", "commit": "f1420728f59843eb2ef084406b3d0201a0a0932d" }, "rustaceanvim": { "branch": "master", "commit": "01b28c60abde5cb79c0129e66c465699e78b0e6d" }, diff --git a/lua/config/keys.lua b/lua/config/keys.lua index cf1acc4..be1260d 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -27,6 +27,7 @@ require("which-key").add({ { "s", group = "search" }, { "ss", Snacks.picker.lsp_workspace_symbols, name = "symbols" }, { "sg", Snacks.picker.grep, name = "grep" }, + { "sn", Snacks.picker.notifications, name = "notifications" }, { "u", group = "ui" }, { "ut", Snacks.picker.colorschemes, name = "colorschemes" }, diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index ab142ba..b75a6ed 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -12,6 +12,7 @@ return { } }, explorer = {}, + notifier = {}, toggle = {}, }, } diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 30e2b15..1686e6d 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -41,12 +41,12 @@ return { -- OPTIONAL: -- `nvim-notify` is only needed, if you want to use the notification view. -- If not available, we use `mini` as the fallback - "rcarriga/nvim-notify", + -- "rcarriga/nvim-notify", }, opts = { -- you can enable a preset for easier configuration presets = { - bottom_search = true, -- use a classic bottom cmdline for search + bottom_search = true, -- use a classic bottom cmdline for search command_palette = true, -- position the cmdline and popupmenu together }, },