项目作者: mrded

项目描述 :
A vim plugin for interacting with GitHub's CODEOWNERS file.
高级语言: Vim script
项目地址: git://github.com/mrded/vim-github-codeowners.git
创建时间: 2020-07-24T09:43:14Z
项目社区:https://github.com/mrded/vim-github-codeowners

开源协议:Do What The F*ck You Want To Public License

下载


vim-github-codeowners

A vim plugin for interacting with GitHub’s CODEOWNERS file.

Requirements

Installation

Install vim-github-codeowners as any other plugin through the use of
vim-plug,
Vundle,
pathogen
or your favourite vim plugin manager.

  1. Plug 'mrded/vim-github-codeowners', {'do': 'npm install'}

Commands

  • CodeownersWho - shows a codeowner of active file.
  • CodeownersReset - resets cache.

Airline Configuration

vim airline codeowners screenshot

To show a codeowner in an Airline section:

  1. function! AirlineInit()
  2. let g:airline_section_z = airline#section#create(['codeowners'])
  3. endfunction
  4. autocmd User AirlineAfterInit call AirlineInit()

Lightline Configuration

To show a codeowner in a Lightline section:

  1. let g:lightline = {
  2. \ 'active': {
  3. \ 'right': [['codeowners']]
  4. \ },
  5. \ 'component_function': {
  6. \ 'codeowners': 'codeowners#whoBufname'
  7. \ },
  8. \ }