mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-09-22 09:38:01 +02:00
feat: allow setting vim-obsession paused indicator (#2730)
This commit is contained in:
parent
5ca7f0b7fe
commit
e40a696db0
@ -24,6 +24,7 @@ This is the Changelog for the vim-airline project.
|
||||
- coc extensions can also show additional status messages as well as the current function
|
||||
- [coc-git](https://github.com/neoclide/coc-git) extension integrated into hunks extension
|
||||
- rewrote parts using Vim9 Script for performance improvements
|
||||
- [vim-obsession](https://github.com/tpope/vim-obsession) allow to set paused indicator
|
||||
- Other
|
||||
- Changed CI from travis-ci.org to GitHub Actions
|
||||
- Introduce Vim script static analysis using [reviewdog](https://github.com/reviewdog/action-vint)
|
||||
|
@ -14,10 +14,14 @@ 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), '')
|
||||
return ObsessionStatus((g:airline#extensions#obsession#indicator_text . s:spc), (g:airline#extensions#obsession#indicator_text_paused . s:spc))
|
||||
endfunction
|
||||
|
@ -999,8 +999,11 @@ vim-obsession <https://github.com/tpope/vim-obsession>
|
||||
* enable/disable vim-obsession integration >
|
||||
let g:airline#extensions#obsession#enabled = 1
|
||||
|
||||
* set marked window indicator string >
|
||||
* set marked window indicator string when recording session>
|
||||
let g:airline#extensions#obsession#indicator_text = '$'
|
||||
|
||||
* set marked window indicator string when recording session is paused>
|
||||
let g:airline#extensions#obsession#indicator_text_paused = ''
|
||||
<
|
||||
------------------------------------- *airline-omnisharp*
|
||||
OmniSharp <https://github.com/OmniSharp/omnisharp-vim>
|
||||
|
Loading…
x
Reference in New Issue
Block a user