diff options
| author | Robert Günzler <r@gnzler.io> | 2020-01-26 17:16:07 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-01-26 18:00:59 +0100 |
| commit | f5d56602df70950de6b7d40966b00c9939c81763 (patch) | |
| tree | b50ffeb5496fe3525cc1bab2629389ced95435b7 /.vim/after/plugin/line_obsession.vim | |
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to '.vim/after/plugin/line_obsession.vim')
| -rw-r--r-- | .vim/after/plugin/line_obsession.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.vim/after/plugin/line_obsession.vim b/.vim/after/plugin/line_obsession.vim new file mode 100644 index 0000000..c4f774f --- /dev/null +++ b/.vim/after/plugin/line_obsession.vim @@ -0,0 +1,10 @@ +if !exists('g:loaded_obsession') + finish +endif + +let g:lightline.component_function.obsession = 'LightLineSession' + +function! LightLineSession() + let l:indicator = ObsessionStatus('active', 'paused') + return l:indicator ? '[obs '.l:indicator.']' : '' +endfunction |