From 8171fcaf2e9eb7cbed16cf02890df4492a1844f0 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 12 May 2016 22:32:04 +0800 Subject: [PATCH] Fix neovim true color support --- autoload/airline/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index c239ffc2..43405bfb 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -102,7 +102,7 @@ endfunction function! airline#init#gui_mode() 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' endfunction