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

Expose option for OS theme #789

Open
bronzehedwick opened this issue Apr 17, 2020 · 3 comments
Open

Expose option for OS theme #789

bronzehedwick opened this issue Apr 17, 2020 · 3 comments

Comments

@bronzehedwick
Copy link

This is a more broad approach to some other issues in the queue.

Expose a config option to init.vim/ginit.vim for the current macOS theme (light or dark).

This would allow users to change vim colorscheme dynamically based on the OS theme.

Pseudo-code:

set background = dark
colorscheme desert
if (os_theme_vimr == 'light')
  set background = light
  colorscheme delek
endif
@paldepind
Copy link

This would not change the color scheme dynamically, or would it?

@bronzehedwick
Copy link
Author

Yeah it's a good question; my thought is that it would change the theme dynamically, exactly like regular macOS apps and websites that integrate that option do. As soon as the OS theme changes, so does the Vim theme.

@skull-squadron
Copy link

Perhaps:

set colorscheme_auto_light = delek
set colorscheme_auto_light_background = light " default

set colorscheme_auto_dark = desert
set colorscheme_auto_dark_background = dark " default

colorscheme vimr_mac_auto

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