fix(lualine): when opening nvim with a file, show an empty statusline till lualine loads
This commit is contained in:
@ -101,7 +101,13 @@ return {
|
|||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.lualine_laststatus = vim.o.laststatus
|
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
|
vim.o.laststatus = 0
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
opts = function()
|
opts = function()
|
||||||
local icons = require("lazyvim.config").icons
|
local icons = require("lazyvim.config").icons
|
||||||
|
Reference in New Issue
Block a user