mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
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:
parent
15da6658c8
commit
42529e1c4f
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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" },
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue