From 664c688974a7f183f6d6edae70c6aa117dcbd009 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:01:19 +0600 Subject: [PATCH] enhance: refresh lualine on CursorMoved event closes #792 --- lua/lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 6832ad4..7d762c6 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -26,7 +26,7 @@ local last_focus = {} local refresh_real_curwin -- 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 default_refresh_events = default_refresh_events .. ',ModeChanged' end