29 lines
738 B
Lua
29 lines
738 B
Lua
return {
|
|
"nvim-telescope/telescope.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-telescope/telescope-project.nvim",
|
|
},
|
|
keys = {
|
|
{"<leader>f", "<cmd>Telescope find_files<cr>", desc = "Find files"},
|
|
{"<leader>r", "<cmd>Telescope oldfiles<cr>", desc = "Recent files"},
|
|
{"<leader>p", "<cmd>Telescope project<cr>", desc = "Projects"},
|
|
{"<leader>b", "<cmd>Telescope buffers<cr>", desc = "Buffers"},
|
|
},
|
|
config = function()
|
|
require("telescope").setup({
|
|
extensions = {
|
|
project = {
|
|
base_dirs = {
|
|
{ path = "~/projects", max_depth = 2 },
|
|
},
|
|
order_by = "desc",
|
|
sync_with_nvim_tree = true,
|
|
theme = "dropdown",
|
|
},
|
|
},
|
|
})
|
|
require("telescope").load_extension("project")
|
|
end,
|
|
}
|