diff options
author | Xavier Young <[email protected]> | 2022-05-15 21:59:36 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-15 15:59:36 +0200 |
commit | 42529e1c4f55824534184ec0658f0eefb328ac3d (patch) | |
tree | b521a831d61f25f3dff0b093d367a4385df9c241 /lua/lvim/core | |
parent | 15da6658c8ba815f19dee802ff52c25c2ffe266c (diff) |
fix: load notify's telescope extension properly (#2586)
* fix: load notify's telescope extension
* fix: add which-key integration for notify
Diffstat (limited to 'lua/lvim/core')
-rw-r--r-- | lua/lvim/core/telescope.lua | 6 | ||||
-rw-r--r-- | lua/lvim/core/which-key.lua | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index 07dd4b89..6a04a866 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -130,6 +130,12 @@ function M.setup() 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 lvim.builtin.telescope.on_config_done(telescope) end diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index be4487f3..b1ae6f87 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -234,6 +234,7 @@ M.config = function() }, 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" }, u = { "<cmd>LvimUpdate<cr>", "Update LunarVim" }, }, |