feat(ai): sidekick.nvim Copilot Next Edit Suggestions (NES) - #69
Open
arif-assistant wants to merge 1 commit into
Open
feat(ai): sidekick.nvim Copilot Next Edit Suggestions (NES)#69arif-assistant wants to merge 1 commit into
arif-assistant wants to merge 1 commit into
Conversation
- keymaps: normal-mode <Tab> (jump/apply NES, else request one) and layered <Esc> (dismiss pending NES, else original :noh). Replaces FlipPinnedTab. - ai.lua: folke/sidekick.nvim spec (NES only, nes.clear.esc=false); complements copilot.vim inline completion, which coexists by mode. - lsp.lua: remove treesitter incremental-selection <Tab>/<S-Tab> (frees <Tab> for NES); document that copilot.vim already supplies the copilot LSP client sidekick uses (no dedicated client needed). - lazy-lock: pin sidekick.nvim. - docs: full integration + NES investigation writeup. Investigation: verified end-to-end (auth, network, NES feature flag ide_enable_copilot_nes_nonfree_enabled=true, request shape matches copilot-lsp/sidekick). textDocument/copilotInlineEdit still returns empty edits while inlineCompletion works -> server-side/account limitation, not a config bug. Details in docs/sidekick-nes-investigation.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds folke/sidekick.nvim for Copilot Next Edit Suggestions (NES), alongside the existing
copilot.viminline completion (complementary, not a replacement).Changes
<Tab>= jump/apply pending NES else request one;<Esc>= dismiss pending NES else original:noh. Replaces the rarely-usedFlipPinnedTab.folke/sidekick.nvimspec (NES only;nes.clear.esc=falseso the central<Esc>owns the key).<Tab>/<S-Tab>(frees<Tab>); document thatcopilot.vimalready provides the copilotvim.lspclient sidekick uses (no dedicated client needed).sidekick.nvim.Investigation / findings (why NES shows nothing yet)
Verified end-to-end on an authenticated instance:
ide_enable_copilot_nes_nonfree_enabled = true); client attaches; request shape matches copilot-lsp & sidekick.textDocument/copilotInlineEditreturnsedits: [](empty) across: copilot.vim's client and a dedicated latest-server (1.520) client;triggerKindnone/1/2;nextEditSuggestions.enabled=true+didChangeConfiguration; real typed edits polled 6×;didFocussent; editor identity Neovim/vscode/copilot.vim.Conclusion: the Neovim/sidekick/copilot config is correct and complete.
have()==falsefaithfully reflects that the Copilot backend returns no Next-Edit for this account/context — a server-side/account matter (compare with VS Code NES on the same account; check Copilot settings/policy). When the backend returns edits, sidekick surfaces them via the<Tab>/<Esc>maps automatically.Note: excludes unrelated concurrent working-tree edits (
ai.luaall_theirs→accept_theirs,lazy-lockrustaceanvimbranch flip).