lightline-asyncrun


Ⅰ. 插件描述

Async jobs indicator for the lightline vim plugin

Ⅱ. 基本信息

创建日期:  2018-03-15
使用用户:  1
Github星:  5
插件作者:  Alberto Montes

Ⅲ. 安装方法

使用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.

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

添加新评论