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

Example spaceline looks broken

Open shaunsingh opened this issue 2 years ago • 7 comments

Hi, the example spaceline config doesn't look like the README screenshot. I have Nerd Fonts installed and used, and I'm using alacritty + neovim 0.5.

image

shaunsingh avatar Sep 17 '21 21:09 shaunsingh

Evilline looks fine, so I think my neovim config/setup is fine as well

shaunsingh avatar Sep 17 '21 21:09 shaunsingh

Hey, so I think the ones in the README showcase are modified versions of spaceline. Maybe we should refact our example one to match one of those :thinking:

NTBBloodbath avatar Sep 17 '21 23:09 NTBBloodbath

That would be nice! I was looking at this one: image

Searching around a bit, looks like the code is here: https://github.com/Th3Whit3Wolf/dots/blob/main/private_dot_config/private_nvim/private_lua/private_plugins/statusline/private_init.lua

I also found this: https://github.com/Groctel/dotfiles/blob/main/files-common/.config/nvim/lua/neonline.lua, which (according to the screenshots in the dotfiles repo) looks like this:

image

I think the first one looks better, but the code is a mess. Second one is probably easier to adapt between themes and should be fairly straightforward to implement

shaunsingh avatar Sep 18 '21 00:09 shaunsingh

Thank you for looking them!

So what do you recommend, should we add both? We would need to do a small refactor in the first one to make the code beauty but that's pretty simple ig, and the second one is very beauty too :eyes:

NTBBloodbath avatar Sep 18 '21 08:09 NTBBloodbath

I'm fine with adding both. Looks like the author of the second one recently adjusted it to use your fork as well! First one looks fine, other than the colors and providers which should both be an easy fix

shaunsingh avatar Sep 18 '21 16:09 shaunsingh

Right, so I just added neonline. The only theme left would be spaceline, but this one will require a ton of refactoring so it's gonna take longer haha

NTBBloodbath avatar Sep 19 '21 12:09 NTBBloodbath

FYI I tried to enable neonline, and got this:

^I...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:26: in function <...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:25>
E15: Invalid expression: luaeval('require("galaxyline").component_decorator')("DiagnosticError")                                                                                                                                                                                                                              
Does not found this component: FileEncode
Does not found this component: FileFormat
Does not found this component: DiffAdd
Does not found this component: DiffModified
Does not found this component: RainbowRed
Does not found this component: ViMode
Does not found this component: PerCent
...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: attempt to call field 'get_count' (a nil value)
stack traceback:
^I...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: in function 'cmd'
^I...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:26: in function <...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:25> function: builtin#18 ...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: attempt to call field 'get_count' (a nil value)
stack traceback:
^I...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: in function 'cmd'
^I...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:26: in function <...ite/pack/packer/start/galaxyline.nvim/lua/galaxyline.lua:25> function: builtin#18 ...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: attempt to call field 'get_count' (a nil value)
stack traceback:
^I...start/galaxyline.nvim/lua/galaxyline/themes/neonline.lua:183: in function 'cmd'

hackel avatar Feb 01 '22 21:02 hackel