vimr
vimr copied to clipboard
Expose option for OS theme
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
This would not change the color scheme dynamically, or would it?
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.
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