mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
fix(lualine): when opening nvim with a file, show an empty statusline till lualine loads
This commit is contained in:
parent
704e85183b
commit
b72a5c2dfa
1 changed files with 7 additions and 1 deletions
|
@ -101,7 +101,13 @@ return {
|
|||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.g.lualine_laststatus = vim.o.laststatus
|
||||
if vim.fn.argc(-1) > 0 then
|
||||
-- set an empty statusline till lualine loads
|
||||
vim.o.statusline = " "
|
||||
else
|
||||
-- hide the statusline on the starter page
|
||||
vim.o.laststatus = 0
|
||||
end
|
||||
end,
|
||||
opts = function()
|
||||
local icons = require("lazyvim.config").icons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue