plugins.avante.settings

Options provided to the require('avante').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  claude = {
    endpoint = "https://api.anthropic.com";
    max_tokens = 4096;
    model = "claude-3-5-sonnet-20240620";
    temperature = 0;
  };
  diff = {
    autojump = true;
    debug = false;
    list_opener = "copen";
  };
  highlights = {
    diff = {
      current = "DiffText";
      incoming = "DiffAdd";
    };
  };
  hints = {
    enabled = true;
  };
  mappings = {
    diff = {
      both = "cb";
      next = "]x";
      none = "c0";
      ours = "co";
      prev = "[x";
      theirs = "ct";
    };
  };
  provider = "claude";
  windows = {
    sidebar_header = {
      align = "center";
      rounded = true;
    };
    width = 30;
    wrap = true;
  };
}

Declared by:

plugins.avante.settings.auto_suggestions_frequency

The provider for automatic suggestions.

Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: "copilot".

Type: null or string or raw lua code

Default: null

Plugin default: "claude"

Declared by:

plugins.avante.settings.mappings

This option has no description.

Type: null or (attribute set of (string or attribute set of string))

Default: null

Example:

{
  diff = {
    both = "cb";
    next = "]x";
    none = "c0";
    ours = "co";
    prev = "[x";
    theirs = "ct";
  };
  jump = {
    next = "]]";
    prev = "[[";
  };
}

Declared by:

plugins.avante.settings.provider

The LLM provider ("claude", "openai", "azure", …)

Type: null or string or raw lua code

Default: null

Plugin default: "claude"

Declared by: