Add gen_tags.vim plugin support

Display a "Gen. gen_tags" text in section x when gen_tags
is generating tags, similar to gutentags support.
This commit is contained in:
Kamil Cukrowski
2020-10-16 16:43:22 +02:00
parent 83bd08a97a
commit 42b31b966b
6 changed files with 34 additions and 2 deletions

View File

@@ -408,6 +408,11 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'gutentags')
endif
if get(g:, 'airline#extensions#gen_tags#enabled', 1) && (get(g:, 'loaded_gentags#gtags', 0) || get(g:, 'loaded_gentags#ctags', 0))
call airline#extensions#gen_tags#init(s:ext)
call add(s:loaded_ext, 'gen_tags')
endif
if (get(g:, 'airline#extensions#grepper#enabled', 1) && get(g:, 'loaded_grepper', 0))
call airline#extensions#grepper#init(s:ext)
call add(s:loaded_ext, 'grepper')