Skip to content

Commit 69dc933

Browse files
committed
Switch out undotree for telescope-undo
1 parent d9313e0 commit 69dc933

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

config/nvim/lazy-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
"telescope-dap.nvim": { "branch": "master", "commit": "8c88d9716c91eaef1cdea13cb9390d8ef447dbfe" },
6262
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
6363
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "8ad632f793fd437865f99af5684f78300dac93fb" },
64+
"telescope-undo.nvim": { "branch": "main", "commit": "2971cc9f193ec09e0c5de3563f99cbea16b63f10" },
6465
"telescope.nvim": { "branch": "master", "commit": "bfcc7d5c6f12209139f175e6123a7b7de6d9c18a" },
6566
"todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
6667
"toggle-lsp-diagnostics.nvim": { "branch": "main", "commit": "afcacba44d86df4c3c9752b869e78eb838f55765" },
6768
"trouble.nvim": { "branch": "main", "commit": "4453fea6bb597830fbd58d2c484612f37b97bd8c" },
68-
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
6969
"venv-selector.nvim": { "branch": "main", "commit": "f16c25bf16ac6e8bbdbcc9e9b3a1a00729d00c99" },
7070
"vim-better-whitespace": { "branch": "master", "commit": "86a0579b330b133b8181b8e088943e81c26a809e" },
7171
"vim-fugitive": { "branch": "master", "commit": "8c8cdf4405cb8bdb70dd9812a33bb52363a87dbc" },
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
return {
2+
"debugloop/telescope-undo.nvim",
3+
dependencies = { -- note how they're inverted to above example
4+
{
5+
"nvim-telescope/telescope.nvim",
6+
dependencies = { "nvim-lua/plenary.nvim" },
7+
},
8+
},
9+
keys = {
10+
{ -- lazy style key map
11+
"<leader>u",
12+
"<cmd>Telescope undo<cr>",
13+
desc = "undo history",
14+
},
15+
},
16+
opts = {
17+
-- don't use `defaults = { }` here, do this in the main telescope spec
18+
extensions = {
19+
undo = {
20+
xx = 1,
21+
-- telescope-undo.nvim config, see below
22+
},
23+
-- no other extensions here, they can have their own spec too
24+
},
25+
},
26+
config = function(_, opts)
27+
-- Calling telescope's setup from multiple specs does not hurt, it will happily merge the
28+
-- configs for us. We won't use data, as everything is in it's own namespace (telescope
29+
-- defaults, as well as each extension).
30+
require("telescope").setup(opts)
31+
require("telescope").load_extension("undo")
32+
end,
33+
}

config/nvim/lua/kern/plugins/undotree.lua

-21
This file was deleted.

0 commit comments

Comments
 (0)