return { -- Fuzzy Finder (files, lsp, etc) -- https://github.com/nvim-telescope/telescope.nvim 'nvim-telescope/telescope.nvim', version = '*', lazy = false, dependencies = { { 'nvim-lua/plenary.nvim' }, { 'nvim-telescope/telescope-symbols.nvim' }, { 'folke/which-key.nvim' }, { 'ThePrimeagen/harpoon' }, -- Fuzzy Finder Algorithm which requires local dependencies to be built. -- Only load if `make` is available { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make', cond = vim.fn.executable 'make' == 1, }, }, config = function() local t = require 'telescope' local a = require 'telescope.actions' local themes = require 'telescope.themes' -- [[ Configure Telescope ]] -- See `:help telescope` and `:help telescope.setup()` t.setup { defaults = { layout_strategy = 'horizontal', pickers = { find_files = { theme = 'dropdown', }, }, mappings = { i = { [''] = false, [''] = a.move_selection_next, [''] = a.move_selection_previous, [''] = a.move_selection_previous, }, }, }, } -- Load extensions pcall(t.load_extension, 'harpoon') pcall(t.load_extension, 'git_worktree') -- Enable telescope fzf native, if installed pcall(t.load_extension, 'fzf') -- [[ Telescope Keymaps ]] -- See `:help telescope.builtin` -- See `:help telescope.keymap` local b = require 'telescope.builtin' vim.keymap.set('n', '/', function() -- You can pass additional configuration to telescope to change theme, layout, etc. b.current_buffer_fuzzy_find(themes.get_dropdown { winblend = 10, previewer = true, }) end, { desc = '[/] Fuzzily search in current buffer]' }) end, }