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

cmdline autocompletion #690

Open
2 tasks done
deathbeam opened this issue Feb 11, 2024 · 6 comments
Open
2 tasks done

cmdline autocompletion #690

deathbeam opened this issue Feb 11, 2024 · 6 comments

Comments

@deathbeam
Copy link

deathbeam commented Feb 11, 2024

Contributing guidelines

Module(s)

mini.completion

Description

I recently switched to mini.completion from nvim-cmp and I feel like there must be simpler way to do command line autocomplete that isnt something like wilder. I got fairly close with just autocommands, only issue was wildmenu behaviour that cant rly be changed where it always tries to complete if there is only match (so something like noinsert) is not possible. Could be good thing to look at maybe for mini as it do not sounds like it would require a lot of code.

@deathbeam deathbeam added the feature-request Feature request label Feb 11, 2024
@echasnovski
Copy link
Owner

Thanks for the suggestion!

I did not look into Command line completion, as the built-in default one seems good enough for me.

Would you mind elaborating on which issues are worth solving here?

@deathbeam
Copy link
Author

deathbeam commented Feb 11, 2024

Well its mostly that it would be nice to have the menu open as you type instead of having to press tab, nothing fancy (see https://github.com/gelguy/wilder.nvim or https://github.com/hrsh7th/cmp-cmdline for nvim-cmp), and example (popping up witout pressing tab):

image

@echasnovski
Copy link
Owner

Ah, so basically just make a Command line autocompletion (as the title says :) ). Yeah, sounds interesting. I'll see what can be done when I'll be updating 'mini.completion' in (hopefully) near-ish future.

@deathbeam
Copy link
Author

Alright so I was pretty bored and found this as example and tried to implement it properly here: https://github.com/deathbeam/dotfiles/blob/master/nvim/.config/nvim/lua/config/cmdline-completion.lua .

image

Im not sure if you would be willing to accept this as PR (or if you wanted it merged with mini.completion) but I would be happy to PR it if you do.

@echasnovski
Copy link
Owner

Huge thanks for the suggestion and enthusiasm!

At the moment I would like to take time to think about the best approach here. Whether it should be added in 'mini.completion' or separate module (or even at all, really).

@Yushi5058
Copy link

Sounds like a good feature, I'm waiting for updates !!

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

No branches or pull requests

3 participants