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

Use lazyredraw to avoid flicking #1167

Closed
wants to merge 4 commits into from
Closed

Conversation

xzbdmw
Copy link

@xzbdmw xzbdmw commented May 6, 2024

based on https://github.com/hrsh7th/nvim-cmp/blob/8f3c541407e691af6163e2447f3af1bd6e17f9a3/lua/cmp/utils/feedkeys.lua#L15
before:

iShot_2024-05-06_12.12.41.mp4

after:

iShot_2024-05-06_12.13.28.mp4

This is especially obvious in nvim 0.10

@L3MON4D3
Copy link
Owner

L3MON4D3 commented May 6, 2024

Hey!
TBH, I've never encountered this before, the "slight flicker" I refer to is when the cursor momentarily jumps next to the INSERT or VISUAL, not that the whole buffer fllickers.
Do you know of some way I could reproduce this?

@xzbdmw
Copy link
Author

xzbdmw commented May 7, 2024

Hmm it is caused by a plugin redrawing screen when I type enter.
And these operations involve many modechanged autocmd, have you consider adding event_ignore to all?

@xzbdmw xzbdmw closed this May 7, 2024
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

2 participants