return { 'nvim-telescope/telescope.nvim', dependencies = { { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-symbols.nvim', "nvim-telescope/telescope-bibtex.nvim", { 'nvim-telescope/telescope-media-files.nvim', dependencies = { 'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope-media-files.nvim', }, }, }, config = function() local telescope = require("telescope") telescope.setup { 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 case_mode = "smart_case", -- or "ignore_case" or "respect_case" -- the default case_mode is "smart_case" }, -- media_files = { -- -- filetypes whitelist -- -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} -- filetypes = { "png", "webp", "jpg", "jpeg" }, -- -- find command (defaults to `fd`) -- find_cmd = "rg" -- }, bibtex = { global_files = { vim.fn.expand("~/notes/refs") }, } } } telescope.load_extension("fzf") telescope.load_extension("media_files") telescope.load_extension("bibtex") end, keys = { { 'ff', 'Telescope find_files' }, { 'fg', 'Telescope live_grep' }, { 'fb', 'Telescope buffers' }, { 'fh', 'Telescope help_tags' }, { 'fs', function() require('telescope_builtin').symbols({ sources = 'emoji', 'gitmoji', 'nerd' }) end }, -- { 'fb', "Telescope bibtex"} } }