nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.24k stars 467 forks source link

Bug: Intro screen cleared immediately #773

Open fitrh opened 2 years ago

fitrh commented 2 years ago

Self Checks

How to reproduce the problem

Expected behaviour

Neovim opens with an intro screen

Actual behaviour

The intro screen cleared immediately

Minimal config to reproduce the issue

No need for minimal config as the reproduction steps mimic a fresh install of neovim and skip all initialization step

shadmansaleh commented 2 years ago

https://github.com/nvim-lualine/lualine.nvim/issues/259#issuecomment-1200083574

Intro gets cleared on first redraw and setting stl in scheduled function seems to act as a redraw.

shadmansaleh commented 2 years ago

I've asked the nvim devs . It's a bug in neovim.

jacobsonryan commented 2 years ago

Any updates?

shadmansaleh commented 2 years ago

Any updates?

No it's a low priority issue for neovim. Most likely I'll have to fix it myself but I don't currently have time for this. You can try out the dashboard like plugins to give you a nicer intro if you find this annoying the default one doesn't really provide much info. Since this can't be fixed in lualines side I think this will take a while to get resolved.

fitrh commented 2 years ago

This was fixed on my latest build (7fc5f66)

yannjor commented 2 years ago

Still having the same problem, with the latest lualine and neovim v0.9.0-dev-3-gafb7efb373.

fitrh commented 2 years ago

@yannjor can you reproduce it using the minimal config?

yannjor commented 2 years ago

Yes, I removed everything from my config leaving only require("lualine").setup() and still the same.

fitrh commented 2 years ago

I can confirm it, it's weird, my full config does not have the issue but the minimal config has

tony-sol commented 2 years ago

Same here

ryanburda commented 2 years ago

Disabling separators keeps the intro screen up for me. @fitrh @Tony-Sol any chance this explains the difference between your full config and the minimal config?

fitrh commented 2 years ago

@ryanburda you are right, I didn't realize it since I always disable the separator, the following setup doesn't have this issue

nvim --clean \
    -c 'packadd lualine.nvim' \
    -c 'lua require("lualine").setup({ options = { section_separators = "", component_separators = "" } })'
tony-sol commented 1 year ago

Solution with empty separators is not working for me - it skips intro screen even with empty require('lualine').setup {}

Full config here: https://github.com/Tony-Sol/.config/blob/master/nvim/lua/configs.lua

UPD 29.07.2023

After switch from packer to lazy.nvim, solution with empty string as section separators works for me. Still keep looking how to save desired separators and start screen

sahibalejandro commented 1 year ago

In my case startup screen is displayed by only set options.section_separators = ''

wardw commented 1 year ago

I noticed it works if you call require('lualine').setup from after/plugin.

jsatk commented 1 year ago

options.section_separators = '' also works for me. But of course I don't want that. I like having separators.

lalitmeeq commented 1 year ago

I was not sure what was causing this issue. I came here looking for something else but found this issue. Its happening to me and I was trying to fix it but nothing mentioned above worked for me.

CFiggers commented 10 months ago

Also experiencing this issue.

jives commented 9 months ago

Same here. However, Neovide 0.12.2 (on Windows 10) doesn't show this behavior, independent of the no-multigrid setting. image

To my understanding, Neovide is just a "client"; is it possible that the issue could be patched outside of nvim upstream after all?