From fb9a0ebbd4dc38e183886a828170c8aebd49544d Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sat, 23 Jul 2022 12:50:25 +0600 Subject: [PATCH] fix: refresh lualine on filetype change --- lua/lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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