enhance: blend statusline with background when lualine is disabled

This commit is contained in:
shadmansaleh 2022-07-23 12:53:25 +06:00
parent 6fbc35b3e0
commit 292c6bbcce
1 changed files with 3 additions and 0 deletions

View File

@ -395,6 +395,9 @@ local function set_statusline()
vim.loop.timer_stop(timers.stl_timer) vim.loop.timer_stop(timers.stl_timer)
vim.cmd([[augroup lualine_stl_refresh | exe "autocmd!" | augroup END]]) vim.cmd([[augroup lualine_stl_refresh | exe "autocmd!" | augroup END]])
if next(config.sections) ~= nil or next(config.inactive_sections) ~= nil then if next(config.sections) ~= nil or next(config.inactive_sections) ~= nil then
if vim.go.statusline == '' then
modules.nvim_opts.set('statusline', '%#Normal#', { global = true })
end
if config.options.globalstatus then if config.options.globalstatus then
modules.nvim_opts.set('laststatus', 3, { global = true }) modules.nvim_opts.set('laststatus', 3, { global = true })
vim.loop.timer_start( vim.loop.timer_start(