enhance: refresh lualine on CursorMoved event

closes #792
This commit is contained in:
shadmansaleh 2022-08-08 12:01:19 +06:00
parent 1e53bf7386
commit 664c688974
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' local default_refresh_events = 'WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost,VimResized,Filetype,CursorMoved'
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