MR
mrded/vim-github-codeowners
A vim plugin for interacting with GitHub's CODEOWNERS file.
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.
Plug 'mrded/vim-github-codeowners', {'do': 'npm install'}
Commands
CodeownersWho- shows a codeowner of active file.CodeownersReset- resets cache.
Airline Configuration
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()Lightline Configuration
To show a codeowner in a Lightline section:
let g:lightline = {
\ 'active': {
\ 'right': [['codeowners']]
\ },
\ 'component_function': {
\ 'codeowners': 'codeowners#whoBufname'
\ },
\ }On this page
Languages
Vim Script100.0%
Contributors
Do What The F*ck You Want To Public License
Created July 24, 2020
Updated May 29, 2024
