refactor(nvim): move notify telescope load to nvim-notify
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m6s

This commit is contained in:
Price Hiller 2024-06-13 11:01:17 -05:00
parent ea9f8e3227
commit 744da19697
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 11 additions and 3 deletions

View File

@ -79,6 +79,17 @@ return {
end,
desc = "Notifications: Dismiss",
},
{
"<leader>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")

View File

@ -58,7 +58,6 @@ return {
{ "<leader>tu", ":Telescope undo<CR>", desc = "Telescope: Undo History", silent = true },
{ "<leader>tm", ":Telescope man_pages<CR>", desc = "Telescope: Man Pages", silent = true },
{ "<leader>tq", ":Telescope quickfixhistry", desc = "LSP: Telescope Quickfix History", silent = true },
{ "<leader>nv", ":Telescope notify<CR>", desc = "Notifications: Search", silent = true },
{ "<leader>tt", ":Telescope<CR>", desc = "Telescope: Open Telescope", silent = true },
{
"<leader>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")