-
Notifications
You must be signed in to change notification settings - Fork 45
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
Moves cmp popup to beginning of suggestion #89
Comments
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 |
@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 |
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?
The text was updated successfully, but these errors were encountered: