bug quickfix
`mode`, `branch` and `signify` components stopped working after last update, now they do
This commit is contained in:
parent
710d5ad838
commit
4cf4ac814d
|
@ -102,17 +102,14 @@ local function statusline(is_focused)
|
||||||
return table.concat(status)
|
return table.concat(status)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.set_active_statusline()
|
|
||||||
vim.wo.statusline = statusline(1)
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.set_inactive_statusline()
|
function M.set_inactive_statusline()
|
||||||
vim.wo.statusline = statusline()
|
vim.wo.statusline = statusline()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function exec_autocommands()
|
local function exec_autocommands()
|
||||||
_G.set_lualine_theme = set_lualine_theme
|
_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 WinLeave,BufLeave * lua require('lualine').set_inactive_statusline()]])
|
||||||
vim.cmd([[autocmd ColorScheme * call v:lua.set_lualine_theme()]])
|
vim.cmd([[autocmd ColorScheme * call v:lua.set_lualine_theme()]])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue