2024-05-24 21:33:00 +02:00
|
|
|
return {
|
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
|
|
config = function()
|
|
|
|
require"telescope".setup {}
|
|
|
|
|
|
|
|
local tb = require"telescope.builtin"
|
|
|
|
local map = require"util.map"
|
|
|
|
|
|
|
|
-- Default pickers
|
2024-07-23 15:08:00 +02:00
|
|
|
map("n", "<leader>tf", tb.find_files,"[T]elescope [f]iles")
|
2024-05-24 21:33:00 +02:00
|
|
|
map("n", "<leader>tg", tb.live_grep, "[T]elescope [g]rep")
|
|
|
|
map("n", "<leader>tb", tb.buffers, "[T]elescope [b]uffers")
|
|
|
|
map("n", "<leader>tm", function()
|
|
|
|
tb.man_pages({ "ALL" })
|
|
|
|
end, "[T]elescope [m]an pages")
|
|
|
|
map("n", "<leader>tk", tb.keymaps, "[T]elescope [k]eymaps")
|
|
|
|
map("n", "<leader>tk", tb.keymaps, "[T]elescope [k]eymaps")
|
|
|
|
|
|
|
|
-- LSP pickers
|
|
|
|
map("n", "<leader>tld", tb.diagnostics, "[T]elescope [l]sp [d]iagnostics")
|
|
|
|
map("n", "<leader>tlr", tb.lsp_references, "[T]elescope [l]sp [r]eferences")
|
|
|
|
end,
|
|
|
|
}
|