mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 05:23:51 -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
|
||||
endfunction
|
||||
|
||||
if has('gui_running')
|
||||
if has('gui_running') || ( has('nvim') && &termguicolors )
|
||||
function! lightline#colorscheme#background() abort
|
||||
return &background
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user