fix: refresh lualine on filetype change

This commit is contained in:
shadmansaleh 2022-07-23 12:50:25 +06:00
parent 292c6bbcce
commit fb9a0ebbd4
1 changed files with 1 additions and 1 deletions

View File

@ -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