From 3ce1261a7f83c4cd8392b7066ffd6deccc88d0d7 Mon Sep 17 00:00:00 2001 From: Nick Rhodes Date: Sat, 1 Sep 2018 08:36:14 +0100 Subject: [PATCH] Treat nvim with termguicolors enabled as if it was a gui client This helps set the correct light/dark background value within lightline. --- autoload/lightline/colorscheme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lightline/colorscheme.vim b/autoload/lightline/colorscheme.vim index 019c7cc..e450f6b 100644 --- a/autoload/lightline/colorscheme.vim +++ b/autoload/lightline/colorscheme.vim @@ -224,7 +224,7 @@ function! lightline#colorscheme#flatten(p) abort return a:p endfunction -if has('gui_running') +if has('gui_running') || ( has('nvim') && &termguicolors ) function! lightline#colorscheme#background() abort return &background endfunction