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

fix: Clear virtual text immediately on cursor move #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f-person
Copy link
Owner

@f-person f-person commented Apr 1, 2024

The PR #121 introduced some side-effects which made the plugin feel more laggy overall because of how the virtual text got cleared with a delay. This commit retains the original delay behavior for displaying, while immediately clearing the virtual text on cursor move.

Previous behavior:

CleanShot.2024-04-01.at.14.48.11.mp4

Current behavior:

CleanShot.2024-04-01.at.14.47.39.mp4

@bossley9 this doesn't yet switch the default to 0 since it's probably good to 1) reconsider doing that after this change (i would probably still be in favor of that), 2) nicer to do in a separate PR

The PR #121 introduced some side-effects which made the plugin feel more
laggy overall because of how the virtual text got cleared with a delay.
This commit retains the original delay behavior for displaying, while immediately
clearing the virtual text on cursor move.
@f-person f-person requested a review from bossley9 April 1, 2024 14:24
@f-person
Copy link
Owner Author

f-person commented Apr 1, 2024

@jinzhongjia maybe also take a look at this one if you feel like it :)

@jinzhongjia
Copy link
Contributor

The effect is great

Copy link
Collaborator

@bossley9 bossley9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I left two comments

lua/gitblame/init.lua Show resolved Hide resolved
lua/gitblame/init.lua Show resolved Hide resolved
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 this pull request may close these issues.

None yet

3 participants