Configuring the Action Palette
The Action Palette lists CodeCompanion's actions, such as starting a chat or switching to an open one, alongside the prompts from the prompt library.
Layout
The palette is configured under display.action_palette. The defaults are:
lua
require("codecompanion").setup({
display = {
action_palette = {
width = 95,
height = 10,
prompt = "Prompt ", -- Shown when CodeCompanion asks for your input
provider = "default", -- Can be "default", "telescope", "fzf_lua", "mini_pick" or "snacks"
opts = {
show_preset_actions = true,
show_preset_prompts = true,
title = "CodeCompanion actions",
},
},
},
})If you don't set a provider, CodeCompanion uses the first one installed out of Telescope, fzf-lua, mini.pick and Snacks, then falls back to default. width and height only apply to the default provider.
Options
The opts table takes:
| Option | Description |
|---|---|
show_preset_actions | Show the actions, such as Chat and Open chats ... |
show_preset_prompts | Show the prompts that ship with CodeCompanion |
title | The title of the palette |