Skip to content
Aleksandr Kirillov edited this page Sep 14, 2022 · 7 revisions

Welcome to the easypick.nvim wiki!

Recipes

Here are a few useful recipes on how to leverage Easypick to create awesome custom pickers!

Command palette

to create a "command palette" style picker that executes vim commands add this to your config

-- a list of command that you want to pick from
local list = [[
<< EOF
:PackerInstall
:Telescope find_files
:Git blame
EOF
]]

easypick.setup({
	pickers = {
		{
			name = "command_palette",
			command = "cat " .. list,
                        -- pass a pre-configured action that runs the command
			action = easypick.actions.run_nvim_command,
                        -- you can specify any theme you want, but the dropdown looks good for this example =)
			opts = require('telescope.themes').get_dropdown({})
		}
	}
})
Clone this wiki locally