diff --git a/lua/lualine.lua b/lua/lualine.lua index 4d66157..32c6613 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -20,7 +20,7 @@ local timers = { } -- The events on which lualine redraws itself -local default_refresh_events = 'WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost,VimResized' +local default_refresh_events = 'WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost,VimResized,Filetype' if vim.fn.has('nvim-0.7') == 1 then -- utilize ModeChanged event introduced in 0.7 default_refresh_events = default_refresh_events .. ',ModeChanged' end