summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-05-16 23:20:53 -0400
committerJune McEnroe <programble@gmail.com>2016-05-16 23:20:53 -0400
commite7d7babbde9a696e57f8bce36861db4a881325ac (patch)
treeaca19e98fa84eee716613e0be43df2dc65042b8e
parentAdd light iTerm profile (diff)
downloadsrc-e7d7babbde9a696e57f8bce36861db4a881325ac.tar.gz
src-e7d7babbde9a696e57f8bce36861db4a881325ac.zip
Set background in nvim from iTerm profile
Is this overkill?
Diffstat (limited to '')
-rw-r--r--.config/nvim/init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index ac738428..45f99c2c 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -17,7 +17,7 @@ set splitbelow splitright
 map <ScrollWheelUp> <C-Y>
 map <ScrollWheelDown> <C-E>
 
-set background=dark
+execute 'set background=' . ($ITERM_PROFILE != '' ? $ITERM_PROFILE : 'dark')
 let $NVIM_TUI_ENABLE_TRUE_COLOR = 1
 let g:gruvbox_italic = 0
 let g:gruvbox_invert_selection = 0