return { 'nvim-telescope/telescope.nvim', cmd = 'Telescope', dependencies = { 'nvim-lua/plenary.nvim' }, keys = function() local lazy_telescope = function(builtin) return function(...) require('telescope.builtin')[builtin](...) end end return { { 'fb', lazy_telescope('buffers'), desc = 'Find buffers' }, { 'fd', lazy_telescope('diagnostics'), desc = 'Find diagnostics' }, { 'ff', lazy_telescope('find_files'), desc = 'Find files' }, { 'fg', lazy_telescope('live_grep'), desc = 'Find files by content'}, { 'fh', lazy_telescope('help_tags'), desc = 'Find help tags' }, { 'fo', lazy_telescope('oldfiles'), desc = 'Find recently opened files' }, { 'fw', lazy_telescope('grep_string'), desc = 'Find word in buffer' }, { 'f/', lazy_telescope('current_buffer_fuzzy_find'), desc = 'Find fuzzy match in current buffer' }, } end, config = true, }