fix: load notify's telescope extension properly (#2586)

* fix: load notify's telescope extension

* fix: add which-key integration for notify
This commit is contained in:
Xavier Young 2022-05-15 21:59:36 +08:00 committed by GitHub
parent 15da6658c8
commit 42529e1c4f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -130,6 +130,12 @@ function M.setup()
end) end)
end end
if lvim.builtin.notify.active then
pcall(function()
require("telescope").load_extension "notify"
end)
end
if lvim.builtin.telescope.on_config_done then if lvim.builtin.telescope.on_config_done then
lvim.builtin.telescope.on_config_done(telescope) lvim.builtin.telescope.on_config_done(telescope)
end end

View file

@ -234,6 +234,7 @@ M.config = function()
}, },
P = { "<cmd>edit $LUNARVIM_CACHE_DIR/packer.nvim.log<cr>", "Open the Packer logfile" }, P = { "<cmd>edit $LUNARVIM_CACHE_DIR/packer.nvim.log<cr>", "Open the Packer logfile" },
}, },
n = { "<cmd>Telescope notify<cr>", "View Notifications" },
r = { "<cmd>LvimReload<cr>", "Reload LunarVim's configuration" }, r = { "<cmd>LvimReload<cr>", "Reload LunarVim's configuration" },
u = { "<cmd>LvimUpdate<cr>", "Update LunarVim" }, u = { "<cmd>LvimUpdate<cr>", "Update LunarVim" },
}, },

View file

@ -24,7 +24,6 @@ local core_plugins = {
}, },
{ {
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
config = function() config = function()
require("lvim.core.notify").setup() require("lvim.core.notify").setup()
end, end,
@ -38,7 +37,6 @@ local core_plugins = {
-- Telescope -- Telescope
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
config = function() config = function()
require("lvim.core.telescope").setup() require("lvim.core.telescope").setup()
end, end,