Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.34 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.34 KB

lightline-asyncrun

This plugin allows you to add a simple indicator on the vim's lightline to see if there is any async job running in the background.

Screenshot

Installation

You can install it using the Vim's plugin manager of your choice. For example with Vundle:

" Dependencies
Plugin 'itchyny/lightline.vim'
Plugin 'skywind3000/asyncrun.vim'
" Plugin
Plugin 'albertomontesg/lightline-asyncrun'

Integration with lightline

  1. Register the component:
let g:lightline.component_expand = {
        \ 'asyncrun_status': 'lightline#asyncrun#status',
        \ }
  1. Add the components to the lightline:
let g:lightline.active = {
\ 'right': [
\	  ['percent', 'lineinfo'],
\	  ['fileformat', 'fileencoding', 'filetype'],
\   ['asyncrun_status']
\ ]}

Configuration

g:lightline#asyncrun#indicator_none

The indicator where there is no jobs running. Default is No Jobs.

g:lightline#asyncrun#indicator_run

The indicator where there is one job running. Default is Running....

Aknowledgements

This plugin is completely inspired by the plugin lightline-ale by Maxim Baz.

License

MIT