2022-08-23 22:12:01 +03:00
|
|
|
return function()
|
2022-10-26 14:08:20 +03:00
|
|
|
local telescope = require("telescope")
|
|
|
|
local builtin = require("telescope.builtin")
|
2022-08-24 00:38:10 +03:00
|
|
|
|
2022-10-26 14:08:20 +03:00
|
|
|
telescope.setup({
|
|
|
|
pickers = { find_files = { find_command = { "fd", "-Ht", "f" } } },
|
|
|
|
})
|
2022-08-24 00:38:10 +03:00
|
|
|
|
2022-10-26 14:08:20 +03:00
|
|
|
telescope.load_extension("fzf")
|
|
|
|
telescope.load_extension("ui-select")
|
|
|
|
telescope.load_extension("cder")
|
2022-08-24 00:38:10 +03:00
|
|
|
|
2022-10-26 14:08:20 +03:00
|
|
|
-- Keybinds
|
|
|
|
vim.keymap.set("n", "<C-t>", vim.cmd.Telescope)
|
|
|
|
vim.keymap.set("n", "<C-f>", builtin.find_files)
|
|
|
|
vim.keymap.set("n", "<C-g>", builtin.live_grep)
|
2022-08-23 17:56:24 +03:00
|
|
|
end
|