2023-08-29 20:07:23 +02:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>ff",
|
|
|
|
function()
|
|
|
|
require("telescope.builtin").find_files()
|
|
|
|
end,
|
|
|
|
desc = "Find Plugin File",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<leader>fw",
|
|
|
|
function()
|
|
|
|
require("telescope.builtin").live_grep()
|
|
|
|
end,
|
|
|
|
desc = "Find File",
|
|
|
|
},
|
2023-08-29 22:06:35 +02:00
|
|
|
{
|
|
|
|
"<leader>fh",
|
|
|
|
"<cmd>Telescope harpoon marks<cr>",
|
|
|
|
desc = "Find harpoon",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<leader>fb",
|
|
|
|
"<cmd>Telescope buffers<cr>",
|
|
|
|
desc = "Find buffer",
|
|
|
|
},
|
2023-12-13 13:11:25 +01:00
|
|
|
{
|
|
|
|
"<leader>fr",
|
|
|
|
function()
|
|
|
|
require("telescope.builtin").resume()
|
|
|
|
end,
|
|
|
|
desc = "Resume last search",
|
|
|
|
},
|
2023-08-29 20:07:23 +02:00
|
|
|
},
|
|
|
|
opts = {
|
|
|
|
defaults = {
|
|
|
|
layout_strategy = "horizontal",
|
|
|
|
layout_config = { prompt_position = "top" },
|
|
|
|
sorting_strategy = "ascending",
|
|
|
|
winblend = 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"telescope.nvim",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
|
|
build = "make",
|
|
|
|
config = function()
|
|
|
|
require("telescope").load_extension("fzf")
|
2023-08-29 22:06:35 +02:00
|
|
|
require("telescope").load_extension("harpoon")
|
2023-08-29 20:07:23 +02:00
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|