From 0b5ef59cf5dce97f865cad3ae66fe2031c17927a Mon Sep 17 00:00:00 2001 From: James Clarke Date: Mon, 25 May 2015 17:10:27 +0100 Subject: [PATCH] Added support for Neovim's terminal buffer mode --- autoload/airline.vim | 2 ++ autoload/airline/init.vim | 1 + 2 files changed, 3 insertions(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index a2ad27e..32d0ab7 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -142,6 +142,8 @@ function! airline#check_mode(winnr) let l:mode = ['replace'] elseif l:m =~# '\v(v|V||s|S|)' let l:mode = ['visual'] + elseif l:m ==# "t" + let l:mode = ['terminal'] else let l:mode = ['normal'] endif diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 7b1c989..4f6db77 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -41,6 +41,7 @@ function! airline#init#bootstrap() \ 's' : 'SELECT', \ 'S' : 'S-LINE', \ '' : 'S-BLOCK', + \ 't' : 'TERMINAL', \ }, 'keep') call s:check_defined('g:airline_theme_map', {})