From 292c6bbcce6cae74c6f742356cc436d125081521 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sat, 23 Jul 2022 12:53:25 +0600 Subject: [PATCH] enhance: blend statusline with background when lualine is disabled --- lua/lualine.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lualine.lua b/lua/lualine.lua index bafa858..4d66157 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -395,6 +395,9 @@ local function set_statusline() vim.loop.timer_stop(timers.stl_timer) vim.cmd([[augroup lualine_stl_refresh | exe "autocmd!" | augroup END]]) 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 modules.nvim_opts.set('laststatus', 3, { global = true }) vim.loop.timer_start(