enhance: refresh lualine on CursorMovedI event (#809)

This commit is contained in:
Keith Plant 2022-08-22 01:13:03 -04:00 committed by GitHub
parent 9076378ac1
commit b87e47e1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ local last_focus = {}
local refresh_real_curwin local refresh_real_curwin
-- The events on which lualine redraws itself -- The events on which lualine redraws itself
local default_refresh_events = 'WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost,VimResized,Filetype,CursorMoved' local default_refresh_events = 'WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost,VimResized,Filetype,CursorMoved,CursorMovedI'
if vim.fn.has('nvim-0.7') == 1 then -- utilize ModeChanged event introduced in 0.7 if vim.fn.has('nvim-0.7') == 1 then -- utilize ModeChanged event introduced in 0.7
default_refresh_events = default_refresh_events .. ',ModeChanged' default_refresh_events = default_refresh_events .. ',ModeChanged'
end end