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

Bug: neovim version and other info as soon as nvim is opened is not being displayed

Open SyedFasiuddin opened this issue 3 years ago • 14 comments

Self Checks

  • [x] I'm using the latest lualine.
  • [x] I didn't find the issue in existing issues or PRs.

How to reproduce the problem

require("lualine").setup({})

Expected behaviour

Had to remove lualine to show that without lualine the nvim version and other info is being displayed. image

Actual behaviour

image

Minimal config to reproduce the issue

require("lualine").setup({})

Additional information

SyedFasiuddin avatar Mar 02 '23 09:03 SyedFasiuddin

FWIW, I get a "flash" of the startup page: https://www.loom.com/share/cda772dd272240dbad05938096a272f4

supermacro avatar Apr 11 '23 03:04 supermacro

In neovim version 0.9.0 this seems to be fixed (there was no change in my config)

SyedFasiuddin avatar Apr 11 '23 14:04 SyedFasiuddin

I just updated to Neovim version 0.9.0 stable, and it still flashes in the same way that supermacro mentioned above.

kylechui avatar Apr 13 '23 15:04 kylechui

I don't know if this helps, but I solved the 'flash of startup page' with the following code:

-- If the current buffer is a 'No Name' buffer, display the startup page
if vim.api.nvim_buf_get_name(0) == '' then
    vim.cmd('intro')
end

Note: I am using Neovim version 0.9.0 and lualine is up to date.

NStefan002 avatar Apr 25 '23 17:04 NStefan002

I also had the same problem. this has not been patched right?

AndreM222 avatar May 18 '23 14:05 AndreM222

right

SyedFasiuddin avatar May 19 '23 06:05 SyedFasiuddin

I have the same, still waiting for some resolution

leandrocunha avatar Oct 05 '23 19:10 leandrocunha

I also have this issue, but there is a workaround; if you change section separators to an empty string, you get the message back.

require('lualine').setup {
    options = {
      -- disabling section separators fixes
      -- the disappearing start screen issue
      section_separators = '',
    }
  }
image

Personally I don't use this because I like the angled separators, because they match my tmux theme separators, but this is a very curious bug, I really wonder what it is about setting separators which (seems to) cause it.

ryan-talus avatar Nov 11 '23 23:11 ryan-talus

if you change section separators to an empty string, you get the message back.

I have section_separators = "" in my config but still I do not get the startup screen.

SyedFasiuddin avatar Nov 12 '23 03:11 SyedFasiuddin

if you change section separators to an empty string, you get the message back. I have section_separators = "" in my config but still I do not get the startup screen.

Seems even more mysterious!

You may need to disable other plugins too, when I started troubleshooting this I had several which hid the startup screen. I actually just now set some of the others to lazy load and switched my config to feline.nvim which let me style it how I wanted while still showing the startup screen.

ryan-talus avatar Nov 12 '23 03:11 ryan-talus

You may need to disable other plugins too

yes, in the original post where I mentioned "minimal config" lualine was the only plugin that was active.

SyedFasiuddin avatar Nov 12 '23 06:11 SyedFasiuddin

I also have this issue, but there is a workaround; if you change section separators to an empty string, you get the message back.

require('lualine').setup {
    options = {
      -- disabling section separators fixes
      -- the disappearing start screen issue
      section_separators = '',
    }
  }
image Personally I don't use this because I like the angled separators, because they match my tmux theme separators, but this is a very curious bug, I really wonder what it is about setting separators which (seems to) cause it.

works for me!

leandrocunha avatar Nov 13 '23 21:11 leandrocunha

Odd, I too can solve it by setting section_separators (using Neovim 0.9.5). However, flash.nvim also cause the same issue, there is something else going on...

helins avatar Feb 09 '24 17:02 helins

Also experiencing this issue, nvim 0.9.5. As a result of something in this plugin, and a few others.

Issue seems to be in plugins which cause any "redraw" of the nvim UI. This results in the startup info disappearing (:h :intro).

In some cases you can workaround this buy lazy loading the plugin into the VimEnter event, but sadly that doesn't work for me. And, I also have custom separators set, so the above workaround is a no go for me either 😞

tgallacher avatar Apr 07 '24 22:04 tgallacher