Awesome
blink-cmp-copilot
Adds copilot suggestions as a source for Saghen/blink.cmp
Setup
If you already have copilot.lua installed, you can install this plugin with packer as you would any other with the following code:
Install
Lazy
{
"giuxtaposition/blink-cmp-copilot",
}
Packer
use {
"giuxtaposition/blink-cmp-copilot",
after = { "copilot.lua" },
}
If you do not have copilot.lua installed, go to https://github.com/zbirenbaum/copilot.lua and follow the instructions there before installing this one
It is recommended to disable copilot.lua's suggestion and panel modules, as they can interfere with completions properly appearing in blink-cmp-copilot. To do so, simply place the following in your copilot.lua config:
require("copilot").setup({
suggestion = { enabled = false },
panel = { enabled = false },
})
Configuration:
blink-cmp:
Source Definition
To link blink-cmp with this source, simply go into your configuration file and add blink-cmp-copilot in you providers and also remember to enable it! Here's a minimal example:
{
"saghen/blink.cmp",
dependencies = {
{
"giuxtaposition/blink-cmp-copilot",
},
},
opts = {
sources = {
providers = {
copilot = {
name = "copilot",
module = "blink-cmp-copilot",
},
},
completion = {
enabled_providers = { "lsp", "path", "snippets", "buffer", "copilot" },
},
},
},
}