local puk = require 'std.puk' local icon = require 'std.icon' local map = require 'std.map' puk.defer 'mini.pick' (function(pick) local extra = puk 'mini.extra' pick.setup { options = { -- Whether to show content from bottom to top content_from_bottom = true, -- Whether to cache matches (more speed and memory on repeated prompts) use_cache = true, }, window = { -- String to use as caret in prompt prompt_caret = icon.prompt_caret .. ' ', -- String to use as prefix in prompt prompt_prefix = icon.prompt_prefix .. ' ', }, } map.normal { description = 'Find files', command = pick.builtin.files, keys = 'ff', category = 'fuzzy' } map.normal { description = 'Live Grep', command = pick.builtin.grep_live, keys = 'fg', category = 'fuzzy' } map.normal { description = 'Find in help', command = pick.builtin.help, keys = 'fh', category = 'fuzzy' } map.normal { description = 'Find buffers', command = pick.builtin.buffers, keys = 'fb', category = 'fuzzy' } map.normal { description = 'Find symbols', command = function() extra.pickers.lsp { scope = 'document_symbol' } end, keys = 'fs', category = 'fuzzy' } map.normal { description = 'Find diagnostic', command = extra.pickers.diagnostic, keys = 'fd', category = 'fuzzy' } map.normal { description = 'Find highlight groups', command = extra.pickers.hl_groups, keys = 'fl', category = 'fuzzy' } map.normal { description = 'Find spellsuggests', command = extra.pickers.spellsuggest, keys = 'fz', category = 'fuzzy' } map.normal { description = 'Find keymaps', command = extra.pickers.keymaps, keys = 'fk', category = 'fuzzy' } end)