Skip to content
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

lsp suggestions often don't show up when copilot suggestions are present #99

Open
JosefLitos opened this issue Nov 24, 2023 · 3 comments

Comments

@JosefLitos
Copy link

JosefLitos commented Nov 24, 2023

no matter the comparators I set, the nvim_lsp source gets often (not always) hidden when copilot suggestions "arrive":
image
but then:
image

while I'm writing copilot doesn't show anything, so lsp shows just fine, but when I stop, it mostly hides all suggestions from other sources.

my source list:

local src = {
	{ name = 'copilot', group_index = 2, keyword_length = 0, priority = 0 },
	{ name = 'nvim_lsp', group_index = 2 },
}
-- cmp comparators used:
	cmp.config.compare.score,
	-- cmp.config.compare.offset,
	cmp.config.compare.recently_used,
	cmp.config.compare.scopes,
	cmp.config.compare.kind,

As you can see, I tried setting the priority to 0, but to no avail.

@dgopsq
Copy link

dgopsq commented Mar 20, 2024

I think I'm having this issue too and I'm using LazyVim. Is there a way to fix it somehow?

@kackerx
Copy link

kackerx commented Mar 28, 2024

Same problem, want to know the solution

@JosefLitos
Copy link
Author

JosefLitos commented Apr 22, 2024

When I played with my settings a bit, I managed to reproduce it again, but then it disappeared again, so idk. There are some other issues, though, which for the lack of activity here I've tried to solve myself (emoty line suggestions). You can try my fork and see if these issues go away (I assume not so, but its the best I can offer).

Edit: I believe cmp has some issues with keyword_length=0, so that may be it.

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

No branches or pull requests

3 participants