Skip to content

Adds support for changing conoline setting when background setting changes#1

Open
dsummersl wants to merge 1 commit intomiyakogi:masterfrom
dsummersl:monitor_bg
Open

Adds support for changing conoline setting when background setting changes#1
dsummersl wants to merge 1 commit intomiyakogi:masterfrom
dsummersl:monitor_bg

Conversation

@dsummersl
Copy link

This is super nice for the unimpaired mappings [ob and ]ob (if using a colorscheme that supports light/dark).

" Change light/dark when the background changes
augroup conoline_monitor_background_setting
autocmd!
autocmd OptionSet background :if &background == 'light' | execute "ConoLineColorLight" | else | execute "ConoLineColorDark" | endif
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the executes and just write the ConoLineColor* command names directly. :neckbeard:

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

Successfully merging this pull request may close these issues.

2 participants