2022-08-23 22:12:01 +03:00
|
|
|
return function()
|
|
|
|
local telescope = require('telescope')
|
2022-08-24 00:38:10 +03:00
|
|
|
local builtin = require('telescope.builtin')
|
|
|
|
|
|
|
|
telescope.setup {
|
|
|
|
pickers = {find_files = {find_command = {"fd", "-Ht", "f"}}}
|
|
|
|
}
|
|
|
|
|
2022-08-23 22:12:01 +03:00
|
|
|
telescope.load_extension('fzf')
|
|
|
|
telescope.load_extension('ui-select')
|
2022-08-24 00:38:10 +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
|