2023-02-20 11:09:53 +00:00
|
|
|
return {
|
2023-03-10 10:05:06 +00:00
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
branch = "0.1.x",
|
2023-05-11 10:44:22 +01:00
|
|
|
dependencies = {
|
|
|
|
{
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
|
|
|
{ "tsakirist/telescope-lazy.nvim", dependencies = { "folke/lazy.nvim" } },
|
2023-05-11 11:23:14 +01:00
|
|
|
"folke/noice.nvim",
|
2023-05-11 10:44:22 +01:00
|
|
|
{ "benfowler/telescope-luasnip.nvim", dependencies = { "L3MON4D3/LuaSnip" } },
|
|
|
|
{
|
|
|
|
"paopaol/telescope-git-diffs.nvim",
|
|
|
|
dependencies = { "nvim-lua/plenary.nvim", "sindrets/diffview.nvim" },
|
|
|
|
},
|
|
|
|
"FeiyouG/command_center.nvim",
|
|
|
|
{ "barrett-ruth/telescope-http.nvim", dependencies = { "savq/paq-nvim" } },
|
|
|
|
"aaronhallaert/advanced-git-search.nvim",
|
|
|
|
},
|
|
|
|
},
|
2023-03-10 10:05:06 +00:00
|
|
|
cmd = "Telescope",
|
2023-05-11 08:51:35 +01:00
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>;", "<cmd>Telescope builtin<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>ff", "<cmd>Telescope find_files<cr>")
|
2023-05-11 18:03:39 +01:00
|
|
|
vim.keymap.set("n", "<leader>fr", "<cmd>Telescope oldfiles<cr>")
|
2023-05-11 08:51:35 +01:00
|
|
|
vim.keymap.set("n", "<leader>fg", "<cmd>Telescope live_grep<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>fb", "<cmd>Telescope buffers<cr>")
|
2023-05-11 18:03:39 +01:00
|
|
|
vim.keymap.set("n", "<leader>fs", "<cmd>Telescope lsp_document_symbols<cr>")
|
2023-05-11 08:51:35 +01:00
|
|
|
vim.keymap.set("n", "<leader>fe", "<cmd>Telescope diagnostics<cr>")
|
2023-05-11 18:03:39 +01:00
|
|
|
vim.keymap.set("n", "<leader>ft", "<cmd>Telescope treesitter<cr>")
|
2023-05-11 08:51:35 +01:00
|
|
|
vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>")
|
|
|
|
end,
|
2023-04-05 12:03:03 +01:00
|
|
|
config = function()
|
2023-05-11 10:44:22 +01:00
|
|
|
local trouble = require "trouble.providers.telescope"
|
|
|
|
require("telescope").setup {
|
|
|
|
defaults = {
|
|
|
|
layout_strategy = "flex",
|
|
|
|
mappings = {
|
|
|
|
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
|
|
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
|
|
},
|
|
|
|
winblend = vim.o.winblend,
|
|
|
|
},
|
|
|
|
extensions = {
|
|
|
|
fzf = {
|
|
|
|
fuzzy = true, -- false will only do exact matching
|
|
|
|
override_generic_sorter = true, -- override the generic sorter
|
|
|
|
override_file_sorter = true, -- override the file sorter
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2023-04-05 12:03:03 +01:00
|
|
|
require("telescope").load_extension "fzf"
|
|
|
|
require("telescope").load_extension "lazy"
|
2023-05-11 11:23:14 +01:00
|
|
|
require("telescope").load_extension "noice"
|
2023-04-05 12:03:03 +01:00
|
|
|
require("telescope").load_extension "luasnip"
|
|
|
|
require("telescope").load_extension "git_diffs"
|
|
|
|
require("telescope").load_extension "command_center"
|
|
|
|
require("telescope").load_extension "http"
|
|
|
|
require("telescope").load_extension "advanced_git_search"
|
|
|
|
require("telescope").load_extension "projects"
|
|
|
|
end,
|
2023-02-20 11:09:53 +00:00
|
|
|
}
|