I'd like to add the events RecordingEnter and RecordingLeave to the default refresh events.
This is useful for cases where the recording register (e.g., vim.fn.reg_recording()) is displayed in lualine. Currently, lualine has to wait until the next refresh which causes a delay. Adding the events RecordingEnter and RecordingLeave immediately triggers an update for a better experience.
For example, noice.nvim does this with the following snippet from its README.
I'd like to add the events
RecordingEnter
andRecordingLeave
to the default refresh events.This is useful for cases where the recording register (e.g.,
vim.fn.reg_recording()
) is displayed in lualine. Currently, lualine has to wait until the next refresh which causes a delay. Adding the eventsRecordingEnter
andRecordingLeave
immediately triggers an update for a better experience.For example, noice.nvim does this with the following snippet from its README.
This could also be accomplished manually via:
and with the lualine section: