Skip to content

nvim: migrate copilot to native 0.12 inline completion#5

Draft
MaxWolf-01 wants to merge 1 commit intomasterfrom
nvim-0.12-copilot
Draft

nvim: migrate copilot to native 0.12 inline completion#5
MaxWolf-01 wants to merge 1 commit intomasterfrom
nvim-0.12-copilot

Conversation

@MaxWolf-01
Copy link
Copy Markdown
Owner

Summary

Replace copilot.vim plugin with neovim 0.12's native vim.lsp.inline_completion + copilot-language-server (LSP).

  • Drop copilot.vim, add copilot-language-server to nix packages
  • nvim/lua/lsps/copilot.lua: LSP config + inline completion keymaps in on_attach
  • AcceptWord/AcceptLine via on_accept callback (truncates suggestion text)
  • Same keybindings: <A-S-s> accept, <A-S-w> word, <A-S-q> line, <A-S-d/a> cycle

Blockers

Dropped (minor)

  • <A-S-r> (manual request) — native inline completion auto-triggers, not needed
  • <A-S-e> (dismiss) — no public API; ghost text clears on typing or leaving insert mode

🤖 Generated with Claude Code

Replace copilot.vim with copilot-language-server (LSP) + neovim 0.12's
built-in vim.lsp.inline_completion. AcceptWord/AcceptLine implemented
via on_accept callback.

Blocked on: neovim 0.12.0 landing in nixpkgs-unstable (currently 0.11.6)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant