From 66ae2f46e1dad5e5bf7617aac0ee21ff0c06e7f5 Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Tue, 8 Aug 2023 17:31:33 +0800 Subject: [PATCH] feat(notify): enable telescope extension of nvim-notify Co-authored-by: abeldekat --- lua/lazyvim/plugins/ui.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index c66c5a4f..e6743d47 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -30,6 +30,29 @@ return { end end, }, + { + "nvim-telescope/telescope.nvim", + opts = function() + local Util = require("lazyvim.util") + if Util.has("nvim-notify") then + require("telescope").load_extension("notify") + end + end, + dependencies = { + { + "rcarriga/nvim-notify", + keys = { + { + "sN", + function() + require("telescope").extensions.notify.notify() + end, + desc = "Notifications", + }, + }, + }, + }, + }, -- better vim.ui {