Open EricDriussi opened 10 months ago
I also observe this behavior. My cmp window jumps around sometimes. But even worse, the plugin overwrites other cmp entries such as LSP. When I type the other suggestions are available, but only for a short time. So seems to be a second update happening, causing the overwrite, and certainly sometimes the jumping, I guess.
See my config here https://github.com/crzdg/dotfiles.
for _, e in ipairs(s:get_entries(ctx)) do
e.score = e.score + priority
table.insert(group_entries, e)
local is_copilot = e:get_completion_item().copilot
if not is_copilot then
offset = math.min(offset, e:get_offset())
end
end
Any updates on this Issue ? I am encountering the same problem....
@alwaysamer have you tried my patch above, I’m afraid there is nothing to do by copilot here
No I did not. Wasn't sure if that was the fix since the Issue is still open. Where exactly would I put that snippet ?
You need to modify cmp source code as the link points to.
Okay I forked the repo and modified the Code. That seems to have fixed the Issue. So thanks @xzbdmw :) . It's going to be annoying to maintain the fork but I suppose there is no way around it...
@alwaysamer I think require("cmp").setup({ view = { entries = { follow_cursor = true } } }) this can be a workaround too, but maybe what you want
Awesome. That seems to have done it as well!
Hi there! I'm noticing a strange behavior since a couple of days ago:
If the suggestion includes the content of current line, the popup window shows up at the beginning of the content instead of staying under the cursor.
Minimal config (using lazy.nvim):
Specific commits:
Usual behavior:
Broken (?) behavior, notice the cursor position:
Mind you this is not due to the window size, the screenshot is just a portion of the window.
What makes this particularly annoying is that, since copilot takes longer to load than other cmp sources, once it does load it actually moves the window away from the cursor.
Am I missing something here?