galaxyline.nvim icon indicating copy to clipboard operation
galaxyline.nvim copied to clipboard

Neovim default status line flashes at start

Open gbaranski opened this issue 3 years ago • 14 comments

Neovim default status line flashes at start, is there any way to prevent that? Default status line is visible for few milliseconds at start.

https://user-images.githubusercontent.com/34353640/117567344-384f6680-b0bc-11eb-9e79-12fb39967557.mp4

gbaranski avatar May 09 '21 09:05 gbaranski

Hmm... interesting. Mine flashes which, and I though it might be related to my theme or something funky on my end.

I'm curious what the highlight group is for that space before galaxyline render. Merely setting that to the default background would make the flashing almost unnoticeable.

WhyNotHugo avatar May 14 '21 14:05 WhyNotHugo

Mine flashes too... thought I was the only one.

pocco81 avatar May 19 '21 04:05 pocco81

I only notice the flashing on my slower systems.

ram02z avatar May 19 '21 13:05 ram02z

Same problem here.

peterwu avatar May 28 '21 16:05 peterwu

Did you previously install and use airline on your nvim ??

arpangreat avatar May 30 '21 07:05 arpangreat

Did you previously install and use airline on your nvim ??

Yes but that was on previous system installation, and before whole config rewrite.

gbaranski avatar May 30 '21 08:05 gbaranski

Did you previously install and use airline on your nvim ??

Yes but that was on previous system installation, and before whole config rewrite.

Okay that's great ... will you set this on your config and see if this helps??

let g:airline_disable_statusline = 1

arpangreat avatar May 30 '21 08:05 arpangreat

let g:airline_disable_statusline = 1

Nope, it don't change anything.

gbaranski avatar May 30 '21 09:05 gbaranski

Never had airline here.

WhyNotHugo avatar May 30 '21 09:05 WhyNotHugo

it's noticeable on large repositories even without git branch section config

mortezadadgar avatar Jun 12 '21 08:06 mortezadadgar

Does anyone were able to solve this isssue? Mines flashes as well but it last longer than yours, around ~1.5 seconds. I started noticing this after updating the plugin and building the latest neovim version. I though that with the following code gl.load_galaxyline() at the bottom would make sure to load galaxyline's components beforehand to avoid lag issues at startup, but overall the plugin is noticeable slower now.

luisvgs avatar Jun 17 '21 16:06 luisvgs

This'll make you less painful

vim.api.nvim_command("hi StatusLine guibg=<your_background_color> guifg=<your_background_color>")

mks1508 avatar Jul 14 '21 10:07 mks1508

@mks1508 better than nothing at least!

pocco81 avatar Jul 14 '21 13:07 pocco81

Hey so I forked galaxyline very recently, added a few goodies and merged some upstream PRs. This issue is gone for me, since I removed some pseudo-async code and stopped lazy-loading galaxyline.

About startup time, it is taking less than 0.5ms to load to me, I guess I optimized it a bit much haha, feel free to give it a try.

NTBBloodbath avatar Sep 17 '21 12:09 NTBBloodbath