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

Can one get two-word suggestions? #41

Open
cpkio opened this issue Apr 4, 2022 · 2 comments
Open

Can one get two-word suggestions? #41

cpkio opened this issue Apr 4, 2022 · 2 comments

Comments

@cpkio
Copy link

cpkio commented Apr 4, 2022

Is it possible to get two-word completion? In first second third buffer content I would like to have first second as suggestion when I start typing first, and second third as suggestion when I start typing second.

@gegoune
Copy link

gegoune commented Apr 4, 2022

I think what you really want here is something like hrsh7th/nvim-compe#299, which I would also welcome.

@gegoune
Copy link

gegoune commented Apr 9, 2022

@hrsh7th I was thinking whether locality bonus could be used here. I can imagine situation when, if enabled and perhaps with specific option set on top of it, it would take into consideration previous word in line, or last word of line above (if completion is for empty line), find one-before-this occurrence of that word and suggest word that followed with very high score.

What do you think? Is it feasible?

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

2 participants