Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

blink-copilot

URL: https://github.com/fang2hou/blink-copilot/

Maintainers: Austin Horstman


Configurable GitHub Copilot suggestions source for the blink-cmp.


This plugin should be configured through blink-cmp's sources.providers settings.

plugins.copilot-lua will be enabled by default, to provide a working setup out-of-the-box. You may disable it by explicitly adding plugins.copilot-lua.enable = false to your configuration.

For example:

{
  plugins.blink-cmp = {
    enable = true;
    settings.sources.providers = {
      copilot = {
        async = true;
        module = "blink-copilot";
        name = "copilot";
        score_offset = 100;
        # Optional configurations
        opts = {
          max_completions = 3;
          max_attempts = 4;
          kind = "Copilot";
          debounce = 750;
          auto_refresh = {
            backward = true;
            forward = true;
          };
        };
      };
    };
  };
}

And then you can add it to blink-cmp's sources.default option:

{
  plugins.blink-cmp = {
    enable = true;
    settings.sources.default = [
      "lsp"
      "path"
      "luasnip"
      "buffer"
      "copilot"
    ];
  };
}

Whether to enable blink-copilot.

Type: boolean

Default: false

Example: true

Declared by:

The blink-copilot package to use.

Type: package

Default: pkgs.vimPlugins.blink-copilot

Declared by:

Whether to automatically load blink-copilot when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by: