vim: telescope-undo

This commit is contained in:
Casper V. Kristensen 2024-08-25 15:40:07 +02:00
parent 7d50f0324e
commit be70a4385a

View file

@ -508,6 +508,16 @@
},
},
},
extensions = {
-- Use vertical layout to allow enough width for
-- side-by-side diffs.
undo = {
layout_strategy = "vertical",
layout_config = {
preview_height = 0.8,
},
},
},
})
-- Keymaps mostly inspired by the popular distros.
@ -559,6 +569,22 @@
require("telescope").load_extension("ui-select")
'';
}
# Visualize your undo tree and fuzzy-search changes in it. For those
# days where committing early and often doesn't work out.
# https://github.com/debugloop/telescope-undo.nvim
{
plugin = telescope-undo-nvim;
type = "lua";
config =
/*
lua
*/
''
local telescope = require("telescope")
telescope.load_extension("undo")
vim.keymap.set("n", "<Leader>fu", telescope.extensions.undo.undo)
'';
}
# Buffer list that lives in the tabline.
# https://github.com/akinsho/bufferline.nvim