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.
Enable it
Section titled “Enable it”-- ~/.config/blak/lua/blak/user.luareturn { extras = { enabled = { "ai.copilot", }, },}Because this extra adds a plugin, run:
:BlakExtras syncWhat it adds
Section titled “What it adds”| Surface | Contribution |
|---|---|
| Plugin | zbirenbaum/copilot.lua |
| Load trigger | InsertEnter or :Copilot |
| Defaults | suggestion.enabled = false, panel.enabled = false |
Authenticate
Section titled “Authenticate”After syncing the plugin, start Neovim and run:
:Copilot auth:Copilot statususer.lua configuration
Section titled “user.lua configuration”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.
Disable it
Section titled “Disable it”:BlakExtras disable ai.copilot:BlakExtras syncRestart Blak to unload the plugin from the current session.