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

[Question] Completition window popup following the cursor #1660

Closed
leandrocunha opened this issue Jul 18, 2023 · 8 comments · Fixed by #1727
Closed

[Question] Completition window popup following the cursor #1660

leandrocunha opened this issue Jul 18, 2023 · 8 comments · Fixed by #1727

Comments

@leandrocunha
Copy link

It's possible to make the competition window popup, following the cursor while type?

@Shougo
Copy link

Shougo commented Jul 18, 2023

You should upload the example.

@lvimuser
Copy link
Contributor

lvimuser commented Aug 10, 2023

For reference

lvimuser@7569056

@Shougo
Copy link

Shougo commented Aug 10, 2023

Can you upload the screenshot?
And why the feature is useful?

@lvimuser
Copy link
Contributor

aaaa.mp4

Not sure if useful? It looks a bit nicer, imo.

@ertucode
Copy link

Why isnt this just added as an option? It is literally -3 lines of code.

@Shougo
Copy link

Shougo commented Oct 15, 2023

You can make the PR for it.

@mcauley-penney
Copy link
Contributor

mcauley-penney commented Oct 15, 2023

Created a PR (with @lvimuser as coauthor, thank you for the critical piece of source) which adds this as an option for the custom entries view, set to false by default. I want this feature.

@leandrocunha
Copy link
Author

Created a PR (with @lvimuser as coauthor, thank you for the critical piece of source) which adds this as an option for the custom entries view, set to false by default. I want this feature.

thank you guys

hrsh7th pushed a commit that referenced this issue Mar 31, 2024
* feat: add option for custom entry view to follow cursor

Creates an option to allow the custom entries
view to follow the user's cursor as they type.

To enable, set
```lua
require("cmp").setup({
  view = {
    entries = {
      follow_cursor = true
    }
  }
})
```

Original source at lvimuser@7569056

Closes #1660

Co-authored-by: lvimuser <109605931+lvimuser@users.noreply.github.com>

* doc: add view.follow_cursor option to docs

---------

Co-authored-by: lvimuser <109605931+lvimuser@users.noreply.github.com>
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

Successfully merging a pull request may close this issue.

5 participants