add telescope-undo
This commit is contained in:
parent
ff03b6eaaf
commit
5dc56d22aa
1 changed files with 2 additions and 0 deletions
|
@ -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", "<leader>?", require("telescope.builtin").oldfiles, { desc = "[?] Find recently opened files" })
|
||||
|
@ -37,5 +38,6 @@ return {
|
|||
vim.keymap.set("n", "<leader>sw", require("telescope.builtin").grep_string, { desc = "[S]earch current [W]ord" })
|
||||
vim.keymap.set("n", "<leader>sg", require("telescope.builtin").live_grep, { desc = "[S]earch by [G]rep" })
|
||||
vim.keymap.set("n", "<leader>sd", require("telescope.builtin").diagnostics, { desc = "[S]earch [D]iagnostics" })
|
||||
vim.keymap.set("n", "<leader>su", "<cmd>Telescope undo", { desc = "[S]earch [U]ndo" })
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue