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.
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'
- Register the component:
let g:lightline.component_expand = {
\ 'asyncrun_status': 'lightline#asyncrun#status',
\ }
- Add the components to the lightline:
let g:lightline.active = {
\ 'right': [
\ ['percent', 'lineinfo'],
\ ['fileformat', 'fileencoding', 'filetype'],
\ ['asyncrun_status']
\ ]}
The indicator where there is no jobs running. Default is No Jobs
.
The indicator where there is one job running. Default is Running...
.
This plugin is completely inspired by the plugin lightline-ale by Maxim Baz.