From 4cf4ac814d5c7acf6470f37047bf771d7cb67e55 Mon Sep 17 00:00:00 2001 From: hoob3rt Date: Wed, 6 Jan 2021 02:36:44 +0100 Subject: [PATCH] bug quickfix `mode`, `branch` and `signify` components stopped working after last update, now they do --- lua/lualine.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index fd1713c..9e09085 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -102,17 +102,14 @@ local function statusline(is_focused) return table.concat(status) end -function M.set_active_statusline() - vim.wo.statusline = statusline(1) -end - function M.set_inactive_statusline() vim.wo.statusline = statusline() end local function exec_autocommands() _G.set_lualine_theme = set_lualine_theme - vim.cmd([[autocmd WinEnter,BufEnter * lua require('lualine').set_active_statusline()]]) + _G.set_active_statusline = statusline + vim.cmd([[autocmd WinEnter,BufEnter * setlocal statusline=%!v:lua.set_active_statusline(1)]]) vim.cmd([[autocmd WinLeave,BufLeave * lua require('lualine').set_inactive_statusline()]]) vim.cmd([[autocmd ColorScheme * call v:lua.set_lualine_theme()]]) end