feat(nvim): add telescope undo

This commit is contained in:
Price Hiller 2023-01-03 10:09:26 -06:00
parent 7b02bd3362
commit 2997719f33
3 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,13 @@ telescope.setup({
["ui-select"] = {
require("telescope.themes").get_dropdown(),
},
undo = {
side_by_side = true,
layout_strategy = "vertical",
layout_config = {
preview_height = 0.8,
},
},
},
})
@ -88,3 +95,4 @@ telescope.load_extension("notify")
telescope.load_extension("fzf")
telescope.load_extension("ui-select")
telescope.load_extension("smart_history")
telescope.load_extension("undo")

View File

@ -39,6 +39,7 @@ vim.keymap.set("n", "<leader>tl", ":Telescope resume<CR>", { silent = true, desc
vim.keymap.set("n", "<leader>tT", ":TodoTelescope<CR>", { silent = true, desc = "Telescope: Todo Items" })
vim.keymap.set("n", "<leader>tk", ":Telescope keymaps<CR>", { silent = true, desc = "Telescope: Keymaps" })
vim.keymap.set("n", "<leader>tc", ":Telescope commands<CR>", { silent = true, desc = "Telescope: Commands" })
vim.keymap.set("n", "<leader>tu", ":Telescope undo<CR>", { silent = true, desc = "Telescope: Undo History" })
-- Lsp Mappings

View File

@ -187,6 +187,7 @@ lazy.setup({
"nvim-telescope/telescope-file-browser.nvim",
"artart222/telescope_find_directories",
"nvim-telescope/telescope-ui-select.nvim",
"debugloop/telescope-undo.nvim",
{ "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" },
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
},