Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'decayofmind/vim-lightline-functions'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'decayofmind/vim-lightline-functions'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'decayofmind/vim-lightline-functions'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/decayofmind/vim-lightline-functions
Ⅳ. 文档说明
# vim-lightline-functions
Custom functions to use with lightline.vim in form of vim plugin.
I've created this repository mainly to reduce mine NeoVim config.
Installation
Plug 'itchyny/lightline.vim'
Plug "decayofmind/vim-lightline-functions"Configuration
let g:lightline.component_function = {
\ 'cocstatus': 'coc#status',
\ 'fileencoding': 'lightline#functions#fileencoding',
\ 'fileformat': 'lightline#functionsfileformat_devicons',
\ 'filename': 'lightline#functions#filename',
\ 'filetype': 'lightline#functions#filetype_devicons',
\ 'gitinfo': 'lightline#functions#gitinfo_coc',
\ 'gitblame': 'lightline#functions#gitblame_coc',
\ 'lineinfo': 'lightline#functions#lineinfo',
\ 'method': 'lightline#functions#method_vista',
\ 'mode': 'lightline#functions#mode',
\ 'readonly': 'lightline#functions#readonly',
\ }Functions
Notice, that if function is dependant on some other plugin (like coc.nvim or vim-devicons),
then it's indicated in it's name.
Credits
Projects/files which inspired me