return { lazy = true, 'nvim-telescope/telescope.nvim', tag = '0.1.4', dependencies = { 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-media-files.nvim' }, config = function() local actions = require("telescope.actions") local keymap = vim.api.nvim_set_keymap local canned = require("telescope._extensions.media.lib.canned") require('telescope').setup({ extensions = { media_files = { filetypes = {"png", "webp", "jpg", "jpeg"}, find_cmd = "rg" }, media = { backend = "ueberzug", } }, defaults = { prompt_prefix = "λ ", selection_caret = "> ", mappings = { i = { [""] = actions.which_key, [""] = actions.move_selection_next, [""] = actions.move_selection_previous, } } }, pickers = { buffers = { sort_lastused = true, previewer = false, layout_config = { width = 0.3, height = 0.4, }, }, planets = { show_pluto = true, }, find_files = { disable_devicons = true }, }, }) keymap('n', '', ':Telescope find_files', {}) keymap('n', 'm', ':Telescope media', {}) keymap('n', 'b', ':Telescope buffers', {}) keymap('n', 't', ':Telescope', {}) keymap('n', 'g', ':Telescope live_grep', {}) require('telescope').load_extension('media_files') end, }