-
Notifications
You must be signed in to change notification settings - Fork 10
Home
Aleksandr Kirillov edited this page Sep 15, 2022
·
7 revisions
Welcome to the easypick.nvim wiki!
Here are a few useful recipes on how to leverage Easypick to create awesome custom pickers!
to create a "command palette" style picker that executes vim commands add this to your config
-- a list of commands 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({})
}
}
})