Skip to content

Configuring the Action Palette ​

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:

OptionDescription
show_preset_actionsShow the actions, such as Chat and Open chats ...
show_preset_promptsShow the prompts that ship with CodeCompanion
titleThe title of the palette

Released under the Apache-2.0 License.