|
@ -5,6 +5,7 @@ return { |
|
|
"nvim-lua/plenary.nvim", |
|
|
"nvim-lua/plenary.nvim", |
|
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, |
|
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, |
|
|
"nvim-tree/nvim-web-devicons", |
|
|
"nvim-tree/nvim-web-devicons", |
|
|
|
|
|
"debugloop/telescope-undo.nvim", |
|
|
}, |
|
|
}, |
|
|
config = function() |
|
|
config = function() |
|
|
local telescope = require("telescope") |
|
|
local telescope = require("telescope") |
|
@ -68,9 +69,26 @@ return { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
extensions = { |
|
|
|
|
|
undo = { |
|
|
|
|
|
side_by_side = true, |
|
|
|
|
|
mappings = { |
|
|
|
|
|
i = { |
|
|
|
|
|
["<CR>"] = require("telescope-undo.actions").restore, |
|
|
|
|
|
}, |
|
|
|
|
|
n = { |
|
|
|
|
|
["<CR>"] = require("telescope-undo.actions").restore, |
|
|
|
|
|
["y"] = require("telescope-undo.actions").yank_additions, |
|
|
|
|
|
["Y"] = require("telescope-undo.actions").yank_deletions, |
|
|
|
|
|
["u"] = require("telescope-undo.actions").restore, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
telescope.load_extension("fzf") |
|
|
telescope.load_extension("fzf") |
|
|
|
|
|
telescope.load_extension("undo") |
|
|
|
|
|
|
|
|
local git_branches = function() |
|
|
local git_branches = function() |
|
|
builtin.git_branches({ |
|
|
builtin.git_branches({ |
|
@ -113,5 +131,7 @@ return { |
|
|
hidden = true, |
|
|
hidden = true, |
|
|
}) |
|
|
}) |
|
|
end, { desc = "Find neovim config files" }) |
|
|
end, { desc = "Find neovim config files" }) |
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>u", "<cmd>Telescope undo<cr>") |
|
|
end, |
|
|
end, |
|
|
} |
|
|
} |