Merge pull request #1160 from wsdjeg/master
Fix neovim true color support
This commit is contained in:
commit
0d05196426
@ -101,8 +101,8 @@ function! airline#init#bootstrap()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#init#gui_mode()
|
function! airline#init#gui_mode()
|
||||||
return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR'))
|
return ((has('nvim') && exists('$NVIM_TUI_ENABLE_TRUE_COLOR') && !exists("+termguicolors"))
|
||||||
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1)) ?
|
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ?
|
||||||
\ 'gui' : 'cterm'
|
\ 'gui' : 'cterm'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user