Editor plugins
copilot.lua
Show GitHub Copilot inline completions and suggestion panels in Neovim.
Install
macOS / Linux · Neovim lazy.nvim plugin configurationConfiguration to paste
- Requires Neovim 0.11 or later.
- Requires an eligible GitHub Copilot account and the authorization described by the plugin.
- Use a macOS or Linux terminal for these commands.
Step 1 · Neovim lazy.nvim plugin configuration
Configuration file ~/.config/nvim/lua/plugins/copilot.lua
- Requires Neovim and lazy.nvim. Save the plugin configuration, then run :Lazy sync in Neovim.
return {
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({})
end,
},
}Step 2 · Neovim command line (starts with :)
:Lazy sync
:Copilot auth
:Copilot auth infoRequirements, costs and detailed steps
copilot.lua setup documentation
Setup requirements have not been reviewed yet. Check the project’s setup guide.
Based on public documentation; not individually installed and tested here.
What is copilot.lua?
This community Lua integration adds Copilot suggestions to Neovim with configurable triggers, shortcuts, and file types. Use Neovim 0.11+ and a GitHub account with Copilot access. The default native language server downloads on first use on supported platforms; Node.js mode requires Node.js 22+. Copilot plan terms and usage limits apply separately.
copilot.lua use cases
- Display inline code completions
- Browse suggestions in a panel
- Control enabled file types
Official project & documentation
Alternatives to copilot.lua for similar tasks
Compare plugins for similar tasks and check their setup requirements.
- Cline — Use AI in your editor to read a project, edit files, and run development commands.
- Kilo Code — Use AI coding in VS Code or JetBrains with your chosen models and tools.
- Avante.nvim — Discuss code with AI in Neovim and apply suggested changes to files.