Ⅰ. 插件描述
Async jobs indicator for the lightline vim pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'albertomontesg/lightline-asyncrun'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'albertomontesg/lightline-asyncrun'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'albertomontesg/lightline-asyncrun'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/albertomontesg/lightline-asyncrun
Ⅳ. 文档说明
# 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.

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
- 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']
\ ]}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.