mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(extras): add telescope-undo to get a searchable undo-tree
This commit is contained in:
parent
a1c3ec4cd4
commit
c18dce6b47
1 changed files with 23 additions and 0 deletions
23
lua/lazyvim/plugins/extras/util/telescope-undo.lua
Normal file
23
lua/lazyvim/plugins/extras/util/telescope-undo.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"debugloop/telescope-undo.nvim",
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>fu",
|
||||||
|
"<cmd>Telescope undo<cr>",
|
||||||
|
desc = "undo history",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("telescope").setup(opts)
|
||||||
|
require("telescope").load_extension("undo")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue