Fix neovim true color support

This commit is contained in:
wsdjeg 2016-05-12 22:32:04 +08:00
parent 811e51575c
commit 8171fcaf2e
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ 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'))
\ || has('gui_running') || (has("termtruecolor") && &guicolors == 1)) ? \ || has('gui_running') || (has("termtruecolor") && &guicolors == 1) || (has("termguicolors") && &termguicolors == 1)) ?
\ 'gui' : 'cterm' \ 'gui' : 'cterm'
endfunction endfunction