From 744da196977bd645b8cecb0eaf58822518cfe100 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 13 Jun 2024 11:01:17 -0500 Subject: [PATCH] refactor(nvim): move notify telescope load to `nvim-notify` --- .../dots/.config/nvim/lua/plugins/configs/noice.lua | 11 +++++++++++ .../.config/nvim/lua/plugins/configs/telescope.lua | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/noice.lua b/users/price/dots/.config/nvim/lua/plugins/configs/noice.lua index 109555e8..38ff3930 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/noice.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/noice.lua @@ -79,6 +79,17 @@ return { end, desc = "Notifications: Dismiss", }, + { + "nv", + function() + if not vim.g.nvim_notify_telescope_loaded then + require("telescope").load_extension("notify") + vim.g.nvim_notify_telescope_loaded = true + end + require("telescope").extensions.notify.notify() + end, + desc = "Notifications: Search", + }, }, config = function() local base = require("notify.render.base") diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua b/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua index 5ca26384..dfbdb4db 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua @@ -58,7 +58,6 @@ return { { "tu", ":Telescope undo", desc = "Telescope: Undo History", silent = true }, { "tm", ":Telescope man_pages", desc = "Telescope: Man Pages", silent = true }, { "tq", ":Telescope quickfixhistry", desc = "LSP: Telescope Quickfix History", silent = true }, - { "nv", ":Telescope notify", desc = "Notifications: Search", silent = true }, { "tt", ":Telescope", desc = "Telescope: Open Telescope", silent = true }, { "tz", @@ -109,7 +108,6 @@ return { "nvim-telescope/telescope-frecency.nvim", }, "debugloop/telescope-undo.nvim", - "rcarriga/nvim-notify", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, }, config = function() @@ -231,7 +229,6 @@ return { }) telescope.load_extension("find_directories") - telescope.load_extension("notify") telescope.load_extension("fzf") telescope.load_extension("ui-select") telescope.load_extension("undo")