mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 13:33:50 -05:00
Treat nvim with termguicolors enabled as if it was a gui client
This helps set the correct light/dark background value within lightline.
This commit is contained in:
@@ -224,7 +224,7 @@ function! lightline#colorscheme#flatten(p) abort
|
|||||||
return a:p
|
return a:p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if has('gui_running')
|
if has('gui_running') || ( has('nvim') && &termguicolors )
|
||||||
function! lightline#colorscheme#background() abort
|
function! lightline#colorscheme#background() abort
|
||||||
return &background
|
return &background
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user