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

Custom Themes #27

Open
nfarrar opened this issue Jan 19, 2015 · 3 comments
Open

Custom Themes #27

nfarrar opened this issue Jan 19, 2015 · 3 comments

Comments

@nfarrar
Copy link

nfarrar commented Jan 19, 2015

The documentation is quite clear on how to define a custom preset, but I don't see anything about creating a custom theme. I looked through the source but didn't see an obvious way (not a vimscript pro though).

My airline segment colors don't map quite the way I'd like to my promptline segments, so I'm hoping there's a way to override it. Also since my vim color configuration is quite right atm, I'd like to hardcode the colors based on my shell rather than pulling them out of airline.

@edkolev
Copy link
Owner

edkolev commented Jan 28, 2015

Hi, sorry for my late response.

If I'm not mistaken, you can set a hash let g:promptline_theme = {...} (If curious, this is the code which handles hashes https://github.com/edkolev/promptline.vim/blob/master/autoload/promptline/themes.vim#L5)

So you could do something like this (sorry, I can't test it ATM, it could have syntax errors)

let g:promptline_theme =  {
        \'a'    : [233, 183],
        \'b'    : [231, 240],
        \'c'    : [188, 234],
        \'x'    : [188, 234],
        \'y'    : [231, 240],
        \'z'    : [233, 183],
        \'warn' : [232, 166]}

@deathtrip
Copy link

but what do these numbers mean? are they rgb color codes?
more explanation please

@edkolev
Copy link
Owner

edkolev commented Mar 29, 2017

They're ansi color codes, ranging from 0 to 255. Here's some image https://roseannastar.files.wordpress.com/2016/09/colortest1.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants