Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share your custom galaxyline #12

Open
glepnir opened this issue Oct 29, 2020 · 129 comments
Open

share your custom galaxyline #12

glepnir opened this issue Oct 29, 2020 · 129 comments
Labels
help wanted Extra attention is needed

Comments

@glepnir
Copy link
Member

glepnir commented Oct 29, 2020

Hey need some screenshots in README. You can share your custom galaxyline screenshots in here and you can add the link .

@glepnir glepnir added the help wanted Extra attention is needed label Oct 29, 2020
@glepnir
Copy link
Member Author

glepnir commented Oct 29, 2020

after

@66RING
Copy link
Contributor

66RING commented Oct 30, 2020

2020-10-30_19-35

\o/

@carlitux
Copy link

would be good to have "defaults" themes out of the box or organize in a new repository.

@glepnir
Copy link
Member Author

glepnir commented Oct 30, 2020

Sounds good. The purpose of galaxyline is to allow users to freely customize any status bar they want. So I provided the highlight keyword, considering that not everyone would be willing to spend time on configure colors, maybe a default theme can be provided, but it is simple. just merge highlight of each section with default theme.

@ChristianChiarulli
Copy link
Contributor

image

@bpingris
Copy link

image
The eviline with rounded sep, find it more elegant

@Iron-E
Copy link
Contributor

Iron-E commented Nov 12, 2020

I based my configuration off of evilline, but I streamlined a bit of the function logic for the custom providers and added the mode text back. Here's a screenshot:

Statusline

Here's the code.

Edit: I updated the image to reflect some changes over the past day. It's a pretty impressive plugin! I was surprised by how well you can reorganize things in order to change the effects.

Edit 2: Updated again, added changing colors according to filetype and more adapting to short windows.

@LoydAndrew
Copy link

LoydAndrew commented Nov 27, 2020

Evilline with coc-lsp status
evliline_lsp
Code

@AlanJui
Copy link

AlanJui commented Nov 29, 2020

How can I get the Version of Python Interpreter and the name of Virtualenv like vim-airline?
2020-11-29_20-40-23

@AlanJui
Copy link

AlanJui commented Nov 29, 2020

Evilline with coc-lsp status
evliline_lsp

Could you please to share your code?

@LoydAndrew
Copy link

@AlanJui I've updated my comment. Maybe I should make a pull request for coc-lsp, so it work out of a box.

@richin13
Copy link
Contributor

richin13 commented Dec 5, 2020

My status line using a modded version of spaceline.lua

image

Code

@Th3Whit3Wolf
Copy link

Th3Whit3Wolf commented Dec 6, 2020

My statusline made to look as close as possible to spacemac's statusline

image

code

Edit: opening file with system shell shebang will now return the actual system shell (ex bash or dash) and if python shebang doesn't give version number then it will return python --version.

@ishan9299
Copy link

ishan9299 commented Dec 19, 2020

Mine slightly mixes the spaceline and eviline in your README.

Screenshot from 2020-12-19 21-02-06

Screenshot from 2020-12-19 21-02-13

Screenshot from 2020-12-19 21-02-09

EDIT:-
code

@voitd
Copy link

voitd commented Dec 30, 2020

My variant eviline.lua

alien_line

CODE

@disrupted
Copy link
Contributor

disrupted commented Jan 16, 2021

my minimalist galaxyline setup.

minimal-galaxyline

Code

@uvicorn
Copy link

uvicorn commented Jan 16, 2021

minimalist fork of Th3Whit3Wolf's variant
изображение
изображение
code

@skbolton
Copy link

skbolton commented Feb 1, 2021

I am seeing a ton of examples here where people have a mapping from a vim mode to a color. No one is handing visual block mode in the posted configs (or I don't know how to see how they are). Does anyone have any idea how to set a key that would capture visual block? Here is my current config.

      local mode_color = {
        -- normal
        n = colors.cyan,
        no = colors.cyan,
        -- selection
        s = colors.dark_yellow,
        -- insert
        i = colors.red,
        -- visual
        V = colors.yellow,
        v = colors.yellow,
        ['^V'] = colors.yellow, -- <- here is the problem child
        c = colors.purple,
        -- terminal
        t = colors.green
      }

I have tried several different values there and nothing seems to come through. If I do print(vim.fn.mode()) when I am in visual block ^V shows up in a blue color in my output. So I feel like it should work but there must be more to it.

@glepnir
Copy link
Member Author

glepnir commented Feb 1, 2021

@skbolton check here
https://github.com/glepnir/galaxyline.nvim/blob/fd3f069c6fb5eabc5dbad030b3c729bb0c6346ec/example/eviline.lua#L36-L43

@Th3Whit3Wolf
Copy link

@skbolton

local mode_color = {
        n = 'DarkGoldenrod2',
        i = 'chartreuse3',
        v = 'gray',
        [""] = 'gray',
        V = 'gray',
        c = 'plum3',
        no = 'DarkGoldenrod2',
        s = 'SkyBlue2',
        S = 'SkyBlue2',
        [""] = 'SkyBlue2',
        ic = 'chartreuse3',
        R = 'purple',
        Rv = 'purple',
        cv = 'plum3',
        ce = 'plum3',
        r = 'chocolate',
        rm = 'chocolate',
        ["r?"] = 'chocolate',
        ["!"] = 'plum3',
        t = 'plum3'
    }

@skbolton
Copy link

skbolton commented Feb 1, 2021

@Th3Whit3Wolf copied all of your keys for the different modes and put in my colors. When I go into Visual Block <c-v> I get errors because reading from that map returns nil. Do you use visual block mode?

@glepnir Looks like they have all the same ones you have in your snippet. Do you know which one is supposed to be for visual block mode?

@kraftwerk28
Copy link
Contributor

image
image
image
Here are configs: galaxyline, colors

@richin13
Copy link
Contributor

richin13 commented Feb 1, 2021

@Th3Whit3Wolf copied all of your keys for the different modes and put in my colors. When I go into Visual Block <c-v> I get errors because reading from that map returns nil. Do you use visual block mode?

@glepnir Looks like they have all the same ones you have in your snippet. Do you know which one is supposed to be for visual block mode?

@skbolton :help mode() is your best friend 👍🏼

@skbolton
Copy link

skbolton commented Feb 2, 2021

@richin13 I checked that before posting this issue. For visual block mode it says it returns CTRL-V. I have tried so many versions of listing this as a key and none of them seem to work.

["CTRL-V"] = colors.yellow,
["^v"] = colors.yellow,
["^V"] = colors.yellow,
["CTRL_V"] = colors.yellow,
["CTRL-v"] = colors.yellow,
["ctrl-v"] = colors.yellow

The help docs highlight CTRL-V differently so thats what lead me to believe that I needed to list it as ["^V"].

@kraftwerk28 what happens when you go into visual block mode <C-v>? I don't think your [''] = ... mapping works.

@glepnir
Copy link
Member Author

glepnir commented Feb 2, 2021

output is ^V,but you can use ^V this to match visual mode,Because there are some escaping here, the above code snippet should work.

@skbolton
Copy link

skbolton commented Feb 2, 2021

Yeah I was thinking ['^V'] = ... was the one that would work and its the first one I tried. But it doesn't work.

@spamwax
Copy link

spamwax commented Jul 26, 2021

my fork of bubbles, uses nonicons and Input font
Screen Shot 2021-07-26 at 6 26 20 PM
Screen Shot 2021-07-26 at 6 26 41 PM
Screen Shot 2021-07-26 at 6 27 00 PM
Screen Shot 2021-07-26 at 6 27 17 PM
Screen Shot 2021-07-26 at 6 27 36 PM
Screen Shot 2021-07-26 at 6 30 20 PM
Screen Shot 2021-07-26 at 6 47 39 PM
Screen Shot 2021-07-26 at 6 50 24 PM
Screen Shot 2021-07-26 at 6 51 13 PM

bubbles.lua

@xrayw
Copy link

xrayw commented Jul 29, 2021

@AlanJui 😞 Hi, I want to get the python interpreter info, but why i get nothing when use the coc#status()?

@superhawk610
Copy link

@UzimakiNaruto coc-python populates the interpreter info in coc#status(), but coc-pyright does not. Make sure you have coc-python installed, or you can implement your own equivalent from the source.

@xrayw
Copy link

xrayw commented Jul 30, 2021

@superhawk610 Thanks, I use coc-pyright now. I implement it by myself now. 😃

@JavierPoduje
Copy link

galaxyline

Transparent version of nerd-galaxy
Here 🧙‍♂️

@Johan-Palacios
Copy link

Johan-Palacios commented Oct 4, 2021

Normal Mode
image
Command Mode
image
Visual Mode
image
Insert Mode
image

@horseinthesky
Copy link

Offtopic: does anybody know where glepnir is? Is he ok?

@Mangeshrex
Copy link

Offtopic: does anybody know where glepnir is? Is he ok?

Same question

@JonathanLorimer
Copy link

1634311759_grim
Nord themed, powerlineish

@Zarainia
Copy link

image
image
image
image
image

Colours are generated from a main background and foreground colour, making for easy switching. This path length is pushing it a bit. Might have to figure out how shells shorten paths for the prompt. Config

@Massolari
Copy link

image

image

My eviline version. Config

@kunzaatko
Copy link
Contributor

This path length is pushing it a bit. Might have to figure out how shells shorten paths for the prompt.

There is a function for that in plenary.path you can use.

@Iamafnan
Copy link

My custom galaxyline with NTBBloodbath's fork
IMG_20220123_214548

@ihasdapie
Copy link

A galaxyline that integrates tabs into the statusline, with coc.nvim support!

code

@Iamafnan
Copy link

A galaxyline that integrates tabs into the statusline, with coc.nvim support!

code

Nice

@jiyometrik
Copy link

1634311759_grim
Nord themed, powerlineish

do you have the code? would love to try this out!

@JonathanLorimer
Copy link

1634311759_grim
Nord themed, powerlineish

do you have the code? would love to try this out!

https://github.com/JonathanLorimer/nix-config/blob/master/programs/nvim/lua/plugins/galaxyline.lua

But note that I am running the fork https://github.com/NTBBloodbath/galaxyline.nvim so config might be a bit different

@Zeddnyx
Copy link

Zeddnyx commented Sep 20, 2022

Normal Mode image Command Mode image Visual Mode image Insert Mode image

Where the code?

@Johan-Palacios
Copy link

Normal Mode image Command Mode image Visual Mode image Insert Mode image

Where the code?

I changed all the config of my status line xd, sorry I don't have the source code

@Mangeshrex
Copy link

:( ahh ok nevermind

@cptchuckles
Copy link

cptchuckles commented Sep 23, 2022

image
mode changes text and color, like this:
image
i still have some things i want to add, fileformat and indentation specifically, but it's getting pretty full by now. i actually kind of don't like how it is, it looks so busy. maybe i use too many colors. comments?
this version last existed at cptchuckles/neovim-config#d678523

@cptchuckles
Copy link

cptchuckles commented Oct 7, 2022

I remade my entire config because I thought mine looked cluttered. I took inspiration from @Zarainia's galaxyline
image
this version lives at this point in my repository
I omitted the mode text because I really never don't know what mode i'm in, and it was taking up extra space. Although I kind of feel like this one might not last either, because I am fickle and some of the eviline-style lines in here have inspired me yet again >.>

@robertmitchellv
Copy link

here is my play on @glepnir's evilline; I call it bubbleline

the icon and bars change with vim mode, here's normal:

rbmv-bubbleline-normal-no-alerts

visual

rbmv-bubbleline-visual-no-alerts

insert

rbmv-bubbleline-insert-no-alerts

replace

rbmv-bubbleline-replace-no-alerts

and then when all of the alerts are active it looks like this

rbmv-bubbleline-normal-all-alerts

@spamwax
Copy link

spamwax commented Dec 7, 2022

here is my play on @glepnir's evilline; I call it bubbleline

rbmv-bubbleline-normal-all-alerts

looks great, can you share the code/repo please

@robertmitchellv
Copy link

robertmitchellv commented Dec 7, 2022

looks great, can you share the code/repo please

yeah sure here's the lua script for bubbleline everything is set up using cosynvim my set up is still a WIP, i've been trying to go slowly through different things trying to understand how all the packages and pieces fit together so it's likely things will change from time to time

edit: if anyone has suggestions on ways to clean thing up in lua (i sort of hacked it all together) feel free to share; would love to learn how to do things correctly

@Myzel394
Copy link

Offtopic: What happened to galaxyline? There hasn't been any new commits for almost a year now, now new issues and people aren't showing their examples here anymore. Is this project dead; is there a newer alternative available?

@spamwax
Copy link

spamwax commented Dec 26, 2023

Offtopic: What happened to galaxyline? There hasn't been any new commits for almost a year now, now new issues and people aren't showing their examples here anymore. Is this project dead; is there a newer alternative available?

It seems to be abandoned. I am still using it since I believe it's the best plugin for this purpose in terms of extensibility and customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests