diff --git a/lua/lazyvim/plugins/extras/util/telescope-undo.lua b/lua/lazyvim/plugins/extras/util/telescope-undo.lua index b23e8e0d..25ff05f1 100644 --- a/lua/lazyvim/plugins/extras/util/telescope-undo.lua +++ b/lua/lazyvim/plugins/extras/util/telescope-undo.lua @@ -1,23 +1,23 @@ return { { - "debugloop/telescope-undo.nvim", + "nvim-telescope/telescope.nvim", + optional = true, dependencies = { { - "nvim-telescope/telescope.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, + "debugloop/telescope-undo.nvim", + keys = { + { + "fu", + "Telescope undo", + desc = "Undo history", + }, + }, + config = function() + LazyVim.on_load("telescope.nvim", function() + require("telescope").load_extension("undo") + end) + end, }, }, - keys = { - { - "fu", - "Telescope undo", - desc = "undo history", - }, - }, - opts = {}, - config = function(_, opts) - require("telescope").setup(opts) - require("telescope").load_extension("undo") - end, }, }