fix: refresh lualine on filetype change
This commit is contained in:
parent
292c6bbcce
commit
fb9a0ebbd4
|
@ -20,7 +20,7 @@ local timers = {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- The events on which lualine redraws itself
|
-- 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
|
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
|
||||||
|
|
Loading…
Reference in New Issue