Skip to content

albertomontesg/lightline-asyncrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Async jobs indicator for the lightline vim plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published