Ⅰ. 插件描述
lightline plugin: Neomake indicators for the Lightline vim plugin.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sinetoami/lightline-neomake'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sinetoami/lightline-neomake'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sinetoami/lightline-neomake'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sinetoami/lightline-neomake
Ⅳ. 文档说明
# lightline-neomake
Inpired by lightline-ale
this plugin provides neomake indicators
for the lightline vim plugin.
Requirements
Installation
Use a plugin manager you want, like vim-plug:
Plug 'neomake/neomake'
Plug 'itchyny/lightline.vim'
Plug 'sinetoami/lightline-neomake'Configuration
Set to the lightline status
- Register the components:
let g:lightline.component_expand = {
\ 'neomake_infos': 'lightline#neomake#infos',
\ 'neomake_warnings': 'lightline#neomake#warnings',
\ 'neomake_errors': 'lightline#neomake#errors',
\ 'neomake_ok': 'lightline#neomake#ok',
\}- Add the components to the light line:
let g:lightline.active = {
\ 'right': [['neomake_warnings', 'neomake_errors',
\ 'neomake_infos', 'neomake_ok']],
\}- If you want set the color to the components:
let g:lightline.component_type = {
\ 'neomake_warnings': 'warning',
\ 'neomake_errors': 'error',
\ 'neomake_ok': 'left',
\}Global Variables
g:lightline#neomake#prefix_infos
Prefix when there are infos. Default is I:.
g:lightline#neomake#prefix_warnings
Prefix when there are warnings. Default is W:.
g:lightline#neomake#prefix_errors
Prefix when there are errors. Default is E:.
g:lightline#neomake#prefix_ok
Prefix qhen there are no nothing. Default is OK.
Special thanks
- Maxim Baz for the greate
lightline-ale plugin that inpired
me.