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

Separate winopts for cmdline completions. #515

Open
the-fuckin-nobody opened this issue Dec 12, 2024 · 4 comments
Open

Separate winopts for cmdline completions. #515

the-fuckin-nobody opened this issue Dec 12, 2024 · 4 comments
Labels
feature New feature or request

Comments

@the-fuckin-nobody
Copy link

Feature Description

Since cmdline completions are completely different from normal completion. There should be separate winopts for them.

What I desire is something like this:

blink.cmp.config({
...
menu = {
cmdline = {
position = {...},
winopts = {...}, options like , max number of entries to display, and other stuff 
}
...
} 
@the-fuckin-nobody the-fuckin-nobody added the feature New feature or request label Dec 12, 2024
@Saghen
Copy link
Owner

Saghen commented Dec 13, 2024

This would make many more configuration options dynamic which could increase complexity quite a bit. Could you explain your use case for this?

@the-fuckin-nobody
Copy link
Author

the-fuckin-nobody commented Dec 13, 2024

Okay, so assume I have set no. of entries for normal completion menu to be 8 cuz I dont want that menu to hog the main window as I'm coding something. But since the winopts are global for every completion menu, the cmdline completion menu will also have max. 8 items , thus it will display less entries for cmdline completion too which I dont think anyone would want that (I hope you understand what I'm trying to say).

Also I dont want the kind icons or kind name to be displayed for cmdline completion menu, it just widens the menu for nothing ( as kind for every cmdline completions is the same)

This would make many more configuration options dynamic which could increase complexity quite a bit.

Totally agree with this.
Maybe make the cmdline completion menu inherit options from global menu options and add a way so we can override options for cmdline menu?

@the-fuckin-nobody
Copy link
Author

Also, implementing something like this would also solve cases like #523 .

@isak102
Copy link

isak102 commented Dec 14, 2024

+1 This would be really nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants