Skip to content

Popupmenu completion experience #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Wsine opened this issue Nov 7, 2024 · 1 comment
Open

Popupmenu completion experience #337

Wsine opened this issue Nov 7, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Wsine
Copy link

Wsine commented Nov 7, 2024

I observed that if a copilot suggestion is presented, the suggestion will not disappear when the popup menu is shown (e.g., nvim-cmp). Change the config to the following can help to improve the experience.

local suggestion = require("copilot.suggestion")
cmp.event:on("menu_opened", function()
  if suggestion.is_visible() then
    suggestion.dismiss()
  end
  vim.b.copilot_suggestion_hidden = true
end)
cmp.event:on("menu_closed", function()
  vim.b.copilot_suggestion_hidden = false
  suggestion.next()
end)
@AntoineGS
Copy link
Collaborator

I would expect most people to want to see the ghost text and the LSP menu at the same time, since they would typically show different things.
Is this because you have Copilot also running with nvim-cmp?

@AntoineGS AntoineGS added the question Further information is requested label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants