feat(undo): add plugin telescope-undo

This commit is contained in:
Michel 2023-12-01 14:05:10 +01:00
parent c2fb521d93
commit 762dd1b379

View File

@ -6,8 +6,24 @@ return {
}, },
{ {
"Mr-LLLLL/interestingwords.nvim", "debugloop/telescope-undo.nvim",
config = true, dependencies = {
keys = { "<leader>k", "<leader>K", "<leader>m", "<leader>M" }, {
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
},
keys = {
{ "<leader>uu", "<cmd>Telescope undo<cr>", desc = "Telescope undo" },
},
opts = {
extensions = {
undo = { use_delta = true },
},
},
config = function(_, opts)
require("telescope").setup(opts)
require("telescope").load_extension("undo")
end,
}, },
} }