File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Plug 'mrded/vim-github-codeowners', {'do': 'npm install'}
25
25
26
26
![ vim airline codeowners screenshot] ( https://user-images.githubusercontent.com/347098/91915409-63262700-ecb2-11ea-8502-52f820e22c75.png )
27
27
28
- To show a codeowner in an [ vim-airline ] ( https://github.com/bling/vim-airline ) section:
28
+ To show a codeowner in an [ Airline ] ( https://github.com/bling/vim-airline ) section:
29
29
30
30
``` vim
31
31
function! AirlineInit()
@@ -34,3 +34,18 @@ endfunction
34
34
35
35
autocmd User AirlineAfterInit call AirlineInit()
36
36
```
37
+
38
+ ## Lightline Configuration
39
+
40
+ To show a codeowner in a [ Lightline] ( https://github.com/itchyny/lightline.vim ) section:
41
+
42
+ ``` vim
43
+ let g:lightline = {
44
+ \ 'active': {
45
+ \ 'right': [['codeowners']]
46
+ \ },
47
+ \ 'component_function': {
48
+ \ 'codeowners': 'codeowners#whoBufname'
49
+ \ },
50
+ \ }
51
+ ```
You can’t perform that action at this time.
0 commit comments