Add a simple eclim's ProjectTree status line
This commit is contained in:
parent
47ecfff9b8
commit
fc6c9120e4
@ -5,6 +5,16 @@ if !exists(':ProjectCreate')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
function! airline#extensions#eclim#creat_line(...)
|
||||||
|
if &filetype == "tree"
|
||||||
|
let builder = a:1
|
||||||
|
call builder.add_section('airline_a', ' Project ')
|
||||||
|
call builder.add_section('airline_b', ' %f ')
|
||||||
|
call builder.add_section('airline_c', '')
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#eclim#get_warnings()
|
function! airline#extensions#eclim#get_warnings()
|
||||||
let eclimList = eclim#display#signs#GetExisting()
|
let eclimList = eclim#display#signs#GetExisting()
|
||||||
if !empty(eclimList)
|
if !empty(eclimList)
|
||||||
@ -20,4 +30,6 @@ endfunction
|
|||||||
|
|
||||||
function! airline#extensions#eclim#init(ext)
|
function! airline#extensions#eclim#init(ext)
|
||||||
call airline#parts#define_function('eclim', 'airline#extensions#eclim#get_warnings')
|
call airline#parts#define_function('eclim', 'airline#extensions#eclim#get_warnings')
|
||||||
|
call a:ext.add_statusline_func('airline#extensions#eclim#creat_line')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user