mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Some checks failed
CI / Test (v7.4) (push) Has been cancelled
CI / Test (v8.0.0000) (push) Has been cancelled
CI / Test (v8.1.0000) (push) Has been cancelled
CI / Test (v8.2.0000) (push) Has been cancelled
CI / Test (v8.2.1000) (push) Has been cancelled
CI / Test (v9.0.0000) (push) Has been cancelled
CI / Test (v9.1.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled
28 lines
900 B
VimL
28 lines
900 B
VimL
" MIT License. Copyright (c) 2013-2021 Bailey Ling et al.
|
|
" Plugin: https://github.com/tpope/vim-obsession
|
|
" vim: et ts=2 sts=2 sw=2
|
|
|
|
scriptencoding utf-8
|
|
|
|
if !exists('*ObsessionStatus')
|
|
finish
|
|
endif
|
|
|
|
let s:spc = g:airline_symbols.space
|
|
|
|
if !exists('g:airline#extensions#obsession#indicator_text')
|
|
let g:airline#extensions#obsession#indicator_text = '$'
|
|
endif
|
|
|
|
if !exists('g:airline#extensions#obsession#indicator_text_paused')
|
|
let g:airline#extensions#obsession#indicator_text_paused = '' " vim-obsession defaults to 'S'
|
|
endif
|
|
|
|
function! airline#extensions#obsession#init(ext)
|
|
call airline#parts#define_function('obsession', 'airline#extensions#obsession#get_status')
|
|
endfunction
|
|
|
|
function! airline#extensions#obsession#get_status()
|
|
return ObsessionStatus((g:airline#extensions#obsession#indicator_text . s:spc), (g:airline#extensions#obsession#indicator_text_paused . s:spc))
|
|
endfunction
|