max397574 / care.nvim

care.nvim - Completion And Recommendation Engine for Neovim - WIP
https://max397574.github.io/care.nvim/
GNU General Public License v3.0
100 stars 10 forks source link

bug: docs piles up fallbacks after repeating in rust_analyzer #139

Open mj59487 opened 2 days ago

mj59487 commented 2 days ago

Prerequisites

Neovim Version

0.10.2-2

Actual behavior



Greetings, author

While reviewing the documentation for the autocompletion entries provided by rust_analyzer, I observed that prolonged scrolling of the completion menu leads to a backlog of fallback documentation that cannot keep pace which creates multiple fallbacks. This issue can only be resolved by either waiting for a considerable duration, scrolling through the menu, or using some kind of API provided by care which redraws care.

Expected behavior

The expected behavior should be that the docs should either keep pace or shouldn't create fallback and instantly show the fallback for the current item or with delay

Healthcheck

==============================================================================
care:                                           require("care.health").check()

care.nvim ~
- Checking configuration...
- Format entry function:
- Format entry function returns correct value
- Alignments:
- All alignments are correct
- 
- Checking dependencies...
- Dependency 'fzy' found

Other information

No response

max397574 commented 2 days ago

could you please add a screen recording? I have an idea what the issue could be but can't reproduce so I'm not completely sure about the nature of the issue.

mj59487 commented 1 day ago

1st recording, care takes a myriad of time to show docs finally for the correct item after repeating. https://github.com/user-attachments/assets/b03f26a4-2465-4638-b932-ff029011b574

2nd recording, it shows wrong docs for the wrong entry when scrolling through until fixed. https://github.com/user-attachments/assets/0cdec75d-f809-4952-b1de-ea63f629edd8

mj59487 commented 20 hours ago

I would like to confirm this issue occurs on normal key repeat speeds as well.