From ec55986f3eea8064d723514ac04b2f89cd8ac565 Mon Sep 17 00:00:00 2001 From: Shadman Date: Wed, 17 Feb 2021 16:47:03 +0600 Subject: [PATCH] fix: reintroduction of #32 (#97) --- lua/lualine.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index bad4437..6a3a6db 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -189,10 +189,13 @@ end local function exec_autocommands() _G.set_lualine_theme = set_lualine_theme + _G.lualine_statusline = status_dispatch vim.api.nvim_exec([[ augroup lualine autocmd! autocmd ColorScheme * call v:lua.set_lualine_theme() + autocmd WinLeave,BufLeave * lua vim.wo.statusline=lualine_statusline() + autocmd WinEnter,BufEnter * setlocal statusline=%!v:lua.lualine_statusline() augroup END ]], false) end @@ -202,8 +205,6 @@ function M.status() exec_autocommands() load_components() load_extensions() - _G.lualine_statusline = status_dispatch - vim.o.statusline = '%!v:lua.lualine_statusline()' end return M