summary refs log tree commit diff
path: root/.config/nvim
diff options
context:
space:
mode:
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