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

Is it possible to set the bd differently for the different colorschemes? #3

Closed
justrajdeep opened this issue Jan 18, 2021 · 1 comment

Comments

@justrajdeep
Copy link

Hi

Is it possible to set the bg differently for the different colorschemes in the list?

Thanks :)

@UncleBill
Copy link
Owner

UncleBill commented Mar 7, 2022

Hi, @justrajdeep , you can customize with following code

function! UpdateBg() abort
  if index(['colorschemes', 'prefer', 'light'], g:colors_name) > -1
    set bg=light
  else
    set bg=dark
  endif
endfunction
autocmd ColorScheme * call UpdateBg()

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

2 participants