-
Notifications
You must be signed in to change notification settings - Fork 499
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
feat: Smooth cursor blink animation option #2421
Conversation
c552db1
to
00d544f
Compare
00d544f
to
ad963b5
Compare
Thank you!! |
ad963b5
to
34b2bc3
Compare
When testing, I've found that the new option causes the cursor to disappear when configured to be non-blinking/static. Minimal repro is
Causing the cursor to disappear. This is an issue, since in some configurations, it might be desirable to have the cursor static in one mode but not in another.
|
The change @@ -63,7 +63,7 @@ impl BlinkStatus {
let current_cursor = self.current_cursor.as_ref().unwrap();
if is_static(current_cursor) {
- self.state = BlinkState::On;
+ self.state = BlinkState::Waiting;
ShouldRender::Wait
} else {
if self.transition_time <= now { i.e. setting the |
34b2bc3
to
1abe539
Compare
Looks good to me, thank you again!! Merging... |
I love this, but I've noticed it causes Neovide to report 15% CPU usage, where it is normally at about 1%. |
@hudgins That does seem like a bit much. Could you check if you get the same CPU usage when running neovide with |
Add a new
g:neovide_cursor_smooth_blink
setting which will make the cursor smoothly transition between its on and off state when enabled.Screencast.from.2024-03-16.16-33-33.webm
What kind of change does this PR introduce?
Did this PR introduce a breaking change?