Options provided to the require('blink-cmp').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  accept = {
    auto_brackets = {
      enabled = false;
    };
  };
  documentation = {
    auto_show = false;
  };
  highlight = {
    use_nvim_cmp_as_default = true;
  };
  keymap = {
    preset = "default";
  };
  trigger = {
    signature_help = {
      enabled = true;
    };
  };
}

Declared by:

The keymap can be:

  • A preset ('default' | 'super-tab' | 'enter')
  • A table of keys => command[] (optionally with a “preset” key to merge with a preset) When specifying ‘preset’ in the keymap table, the custom key mappings are merged with the preset, and any conflicting keys will overwrite the preset mappings.

Type: null or (attribute set of anything) or value false (singular enum) or raw lua code

Default: null

Plugin default:

{
  preset = "default";
}

Example:

{
  "<C-b>" = [
    "scroll_documentation_up"
    "fallback"
  ];
  "<C-e>" = [
    "hide"
  ];
  "<C-f>" = [
    "scroll_documentation_down"
    "fallback"
  ];
  "<C-n>" = [
    "select_next"
    "fallback"
  ];
  "<C-p>" = [
    "select_prev"
    "fallback"
  ];
  "<C-space>" = [
    "show"
    "show_documentation"
    "hide_documentation"
  ];
  "<C-y>" = [
    "select_and_accept"
  ];
  "<Down>" = [
    "select_next"
    "fallback"
  ];
  "<S-Tab>" = [
    "snippet_backward"
    "fallback"
  ];
  "<Tab>" = [
    "snippet_forward"
    "fallback"
  ];
  "<Up>" = [
    "select_prev"
    "fallback"
  ];
}

Declared by:

Set to mono for Nerd Font Mono or normal for Nerd Font. Adjusts spacing to ensure icons are aligned.

Type: null or one of “normal”, “mono” or raw lua code

Default: null

Plugin default: "normal"

Declared by: