Skip to content

Copilot Extra

ai.copilot installs zbirenbaum/copilot.lua. It is never enabled by default, and Blak does not add AI keymaps or silently change completion behavior.

-- ~/.config/blak/lua/blak/user.lua
return {
extras = {
enabled = {
"ai.copilot",
},
},
}

Because this extra adds a plugin, run:

:BlakExtras sync
Surface Contribution
Plugin zbirenbaum/copilot.lua
Load trigger InsertEnter or :Copilot
Defaults suggestion.enabled = false, panel.enabled = false

After syncing the plugin, start Neovim and run:

:Copilot auth
:Copilot status

The public Blak config for this extra is the opt-in itself:

return {
extras = {
enabled = { "ai.copilot" },
},
}

Blak intentionally leaves inline suggestions and the Copilot panel disabled in the extra’s default spec. That prevents the AI integration from taking over insert-mode behavior or adding hidden mappings.

To enable inline suggestions, override the plugin options in user.lua:

return {
extras = { enabled = { "ai.copilot" } },
plugins = {
specs = {
{
"zbirenbaum/copilot.lua",
opts = { suggestion = { enabled = true } },
},
},
},
}

Restart Blak after changing these options. Copilot owns the suggestion shortcuts; see :help copilot for its keymap options. Remove the override to return to the extra’s defaults.

:BlakExtras disable ai.copilot
:BlakExtras sync

Restart Blak to unload the plugin from the current session.