echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.54k stars 175 forks source link

fix(diff): redraw statusline with nvim__redraw if available #853

Closed gpanders closed 2 months ago

gpanders commented 2 months ago

Redrawing the statusline with :redrawstatus causes visible flicker when text changes are made rapidly (e.g. writing in Insert mode) and when the delay.text_change config option is set to a low value (e.g. 100). Instead, we can redraw the statusline at the same time that we redraw the buffer with nvim__redraw.

echasnovski commented 2 months ago

Thanks for the PR! Looks good.