From c4a09735a68c30981c223310848f0649235ec2be Mon Sep 17 00:00:00 2001 From: James Yin Date: Mon, 13 Dec 2021 20:22:30 +0800 Subject: [PATCH] fix: remove auto commands in lualine group properly on lualine reset (#488) --- lua/lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 1feb684..92039c0 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -278,7 +278,7 @@ local function reset_lualine() -- When notices module is not loaded there are no notices to clear. modules.utils_notices.clear_notices() end - vim.cmd [[augroup lualine | autocmd! | augroup END]] + vim.cmd [[augroup lualine | exe "autocmd!" | augroup END]] setup_theme() -- load components & extensions modules.loader.load_all(config)