From b87e47e1dee3cf96fc787f24e282ed5b52ed2fd2 Mon Sep 17 00:00:00 2001 From: Keith Plant Date: Mon, 22 Aug 2022 01:13:03 -0400 Subject: [PATCH] enhance: refresh lualine on CursorMovedI event (#809) --- lua/lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 181ed21..fc0aa8b 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,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 default_refresh_events = default_refresh_events .. ',ModeChanged' end