A vim plugin for interacting with GitHub's CODEOWNERS file.
Install vim-github-codeowners
as any other plugin through the use of
vim-plug,
Vundle,
pathogen
or your favourite vim plugin manager.
Plug 'mrded/vim-github-codeowners', {'do': 'npm install'}
CodeownersWho
- shows a codeowner of active file.CodeownersReset
- resets cache.
To show a codeowner in an Airline section:
function! AirlineInit()
let g:airline_section_z = airline#section#create(['codeowners'])
endfunction
autocmd User AirlineAfterInit call AirlineInit()
To show a codeowner in a Lightline section:
let g:lightline = {
\ 'active': {
\ 'right': [['codeowners']]
\ },
\ 'component_function': {
\ 'codeowners': 'codeowners#whoBufname'
\ },
\ }