Copilot plugin fails to load for me, Lazy.nvim clone stucks on 100% Resolving Deltas or manual install not detected

Aperta
#246 6 commenti 15 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
git, node.js, vim
Ambito
devtools, tooling

Direzione di ricerca

Inizia riproducendo i percorsi di clonazione e installazione manuale di Lazy.nvim descritti nell'issue, quindi esamina init.lua, &runtimepath e :scriptnames in Neovim. Confronta le configurazioni di copilot.lua e copilot.vim e l'output del timeout di Lazy.nvim; l'issue è completata quando il plugin viene caricato in modo affidabile e i comandi :Copilot sono disponibili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I’m trying to use GitHub Copilot with Neovim, but the plugin fails to load reliably. Whether I use the Lua version (via copilot.lua) or Vim‑script version (via copilot.vim), I hit different issues: Lazy.nvim clone gets stuck when it reaches 100% Resolving deltas until I get a timeout error, even when I tried manual installation, Neovim (Lazy.nvim) fails to register/detect the plugin, so commands don’t exist. All my other plugins work fine BTW (themes, bufferline, lualine...etc).

🧪 Environment

  • OS: Linux (MX Linux XFCE 25)
  • Neovim version: v0.11.5
  • Node.js version: v18.20.4 (≥ 16 required for Copilot)
  • Plugin manager: Lazy.nvim
  • Other plugins: (examples) lualine.nvim, bufferline.nvim, nvim-treesitter, toggleterm.nvim, nvim-notify, nord.nvim, etc. — all load fine

What I tried & What happens

✅ Using copilot.lua (Lua version via Lazy.nvim)

I added this plugin to my Lazy.nvim config with default setup.
On Neovim startup, Lazy.nvim tries to clone the plugin: progress reaches “100% resolving deltas”.
After that, clone hangs indefinitely, eventually failing with a timeout error.
I retried multiple times (network stable, Git config adjusted, buffer size increased) — same problem persists.

✅ Using copilot.vim (Vim‑script version via Lazy.nvim)

I replaced with the Vim‑script version and attempted install via Lazy.nvim.
The same behavior: cloning hangs and times out.
All other plugins via Lazy.nvim install normally (themes, tools, utilities).

✅ Manual clone of copilot.vim

I ran:

git clone --depth=1 https://github.com/github/copilot.vim.git \
  ~/.config/nvim/pack/github/start/copilot.vim
  • Clone completes successfully.
  • Folder structure is correct (plugin/, autoload/, lua/, doc/, syntax/, etc.).
  • Restarting Neovim: plugin does not load — :Copilot commands do not exist.
  • :scriptnames shows no copilot.vim/plugin load.
✅ What I verified
  • :echo &runtimepath — the cloned path does not appear.
  • Tried vim.cmd [[packadd copilot.vim]] in init.lua → still no commands.
  • Verified Node.js version (v18.20.4) and Neovim version (v0.11.5).
🎯 What I expect / What should happen
  • Copilot should load properly in Neovim.
  • :Copilot commands should be available.
  • Lazy.nvim should install and load it without hanging.
  • Manual installation should register the plugin properly if path is correct.
❓ Questions / Issues I need help with
  1. Why does Lazy.nvim hang / timeout when cloning Copilot, while other plugins install fine?
  2. Why does manual clone not get recognized by Neovim — the pack/start directory seems correct but plugin isn’t loaded.
  3. Is there a known compatibility issue between Copilot (either version) and my environment?
  4. Are there recommended steps to install Copilot manually (or via Lazy.nvim) to avoid hanging / detection issues?
  5. If both official versions consistently fail, is there a known alternative or fork that works reliably?
✅ What I’ve ruled out
  • Network instability / Git config -> I successfully cloned other repos.
  • Wrong folder path -> folder structure is correct.
  • Other plugin conflicts -> other plugins load and work normally.
  • Node.js / Neovim versions -> meet minimum requirements.
Lingua principale
Vim Script
Stelle
11.7k
Fork
812
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/copilot.vim

Tutte le issue di github/copilot.vim

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.