local map = require('utils').map -- telescope local actions = require('telescope.actions') require('telescope').setup({ defaults = { layout_config = { horizontal = { width = 0.75, height = 0.6, }, }, mappings = { i = { [''] = actions.close, [''] = actions.move_selection_previous, [''] = actions.move_selection_next, [''] = { '', type = 'command' }, [''] = { '', type = 'command' }, [''] = actions.preview_scrolling_down, [''] = actions.preview_scrolling_up, }, }, }, }) local builtin = require('telescope.builtin') map('n', 'ff', builtin.find_files) -- map('n', 'fg', [[:lua require('telescope.builtin').live_grep({additional_args = {'-j8'}})]]) map('n', 'fb', builtin.buffers) map('n', 'fg', function() builtin.live_grep({ additional_args = { '-j8' } }) end) map('n', 'fh', builtin.help_tags) map('n', ';', builtin.commands) -- To get fzf loaded and working with telescope, you need to call -- load_extension, somewhere after setup function: require('telescope').load_extension('fzf')