From 762dd1b3795c4bec796f463d7dd518932f82ce79 Mon Sep 17 00:00:00 2001 From: Michel Date: Fri, 1 Dec 2023 14:05:10 +0100 Subject: [PATCH] feat(undo): add plugin telescope-undo --- lua/plugins/editor.lua | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index fd11e81..8df814c 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -6,8 +6,24 @@ return { }, { - "Mr-LLLLL/interestingwords.nvim", - config = true, - keys = { "k", "K", "m", "M" }, + "debugloop/telescope-undo.nvim", + dependencies = { + { + "nvim-telescope/telescope.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + }, + }, + keys = { + { "uu", "Telescope undo", desc = "Telescope undo" }, + }, + opts = { + extensions = { + undo = { use_delta = true }, + }, + }, + config = function(_, opts) + require("telescope").setup(opts) + require("telescope").load_extension("undo") + end, }, }