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

completeopt beaks stuff (best match not showing up) #2037

Open
2 tasks done
Kaikacy opened this issue Sep 11, 2024 · 0 comments
Open
2 tasks done

completeopt beaks stuff (best match not showing up) #2037

Kaikacy opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Kaikacy
Copy link

Kaikacy commented Sep 11, 2024

FAQ

  • I have checked the FAQ and it didn't resolve my problem.

Announcement

Minimal reproducible full config

cmp.setup {
    completion = {
        completeopt = 'menu,menuone,noinsert,preview'
    }
}

completeopt can have any value ( it still breaks )

Description

I've only noticed this on gdscript lps, but it's really annoying. when i set completeopt to anything first match of completion disappears after typing few letters, so if i am typing pos and it shows position as a first match, when i type next letter (i) that match just disappears and i have to trigger completions manually for it to show up again. and i want to have completeopt option set to preselect first item. I've set vim's completeopt option, but it only works for native autocompletion window. this might be related to gdscript lsp, because i haven't noticed this behavior on other language servers.

Steps to reproduce

with gdscript lsp setup in *.gd file try typing some keyword or function or whatever and once it finds the exact match, it just gets removed from the list of matches and completions needs to be manually triggered to show it again.

Expected behavior

display all the matches sorted from best to worst

Actual behavior

doesn't show the best match

Additional context

I'll try other completion engines and if it happens there too it's probably gdscript lsp's fault. but in that case what does cmp.completion.completeopt has to do with it?

@Kaikacy Kaikacy added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant