enhance: refresh lualine on CursorMovedI event (#809)
This commit is contained in:
parent
9076378ac1
commit
b87e47e1de
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue