vimr icon indicating copy to clipboard operation
vimr copied to clipboard

Expose option for OS theme

Open bronzehedwick opened this issue 5 years ago • 3 comments

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

bronzehedwick avatar Apr 17 '20 15:04 bronzehedwick

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

paldepind avatar Sep 11 '20 12:09 paldepind

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.

bronzehedwick avatar Sep 11 '20 17:09 bronzehedwick

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

skull-squadron avatar Jun 09 '22 06:06 skull-squadron