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

tab colors ? #286

Closed
mckellyln opened this issue Jan 28, 2018 · 5 comments
Closed

tab colors ? #286

mckellyln opened this issue Jan 28, 2018 · 5 comments

Comments

@mckellyln
Copy link

Hi,
I use wombat colorscheme. Is there a way to expose:

let s:p.tabline.tabsel = [ [ s:base3, s:base03 ] ]

in my local .vimrc, so that I can tweak just these tab fg/bg/bold ?
Or should I just edit the wombat.vim in autoload/lightline/colorscheme ?
thx

@mckellyln
Copy link
Author

Or should I copy wombat.vim to a new file, make these changes and then add this new colorscheme to my config ?

@itchyny
Copy link
Owner

itchyny commented Jan 29, 2018

Add following configuration in vimrc (after configuration of plugins).

let s:palette = g:lightline#colorscheme#wombat#palette
let s:palette.tabline.tabsel = [ [ .. whatever you like .. ] ]
unlet s:palette

@mckellyln
Copy link
Author

thx. I added:

let s:base3 = [ '#d0d0d0', 252 ]
let s:mck = [ '#5f8787', 66 ]
let s:palette = g:lightline#colorscheme#wombat#palette
let s:palette.tabline.tabsel = [ [ s:base3, s:mck, 'bold' ] ]
unlet s:palette

after all plugins, but get this on startup:

Error detected while processing function lightline#update[3]..lightline#colorscheme[18]..lightline#highlight:
line   23:
E684: list index out of range: 3
E116: Invalid arguments for function printf('hi Lightline%s_%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s', p, mode, i, j, r[1], q[1], r[3], q[3])
E15: Invalid expression: printf('hi Lightline%s_%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s', p, mode, i, j, r[1], q[1], r[3], q[3])
Error detected while processing function lightline#update:
line    3:
E171: Missing :endif

@itchyny
Copy link
Owner

itchyny commented Jan 29, 2018

Following config should work.

let s:palette = g:lightline#colorscheme#wombat#palette
let s:palette.tabline.tabsel = [ [ '#d0d0d0', '#5f8787', 252, 66, 'bold' ] ]
unlet s:palette

@mckellyln
Copy link
Author

Works great. Thank you again for lightline and the great support.

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

No branches or pull requests

2 participants