From 5dc56d22aae84e664f9e802bf6fc86b72f58deb3 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 28 Feb 2023 17:59:05 -0800 Subject: [PATCH] add telescope-undo --- lua/plugins/telescope.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 818dd8b..58509cb 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -20,6 +20,7 @@ return { -- Enable telescope fzf native, if installed pcall(require("telescope").load_extension, "fzf") pcall(require("telescope").load_extension, "scaladex") + pcall(require("telescope").load_extension, "undo") -- See `:help telescope.builtin` vim.keymap.set("n", "?", require("telescope.builtin").oldfiles, { desc = "[?] Find recently opened files" }) @@ -37,5 +38,6 @@ return { vim.keymap.set("n", "sw", require("telescope.builtin").grep_string, { desc = "[S]earch current [W]ord" }) vim.keymap.set("n", "sg", require("telescope.builtin").live_grep, { desc = "[S]earch by [G]rep" }) vim.keymap.set("n", "sd", require("telescope.builtin").diagnostics, { desc = "[S]earch [D]iagnostics" }) + vim.keymap.set("n", "su", "Telescope undo", { desc = "[S]earch [U]ndo" }) end, }