~alexdavid/dotfiles

ref: e41da60478508d45b875ef7aa13ebb77d2fa90fb dotfiles/nvim/plugin/lightline.vim -rw-r--r-- 567 bytes
e41da604 — Alex David Add mpd config 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set noshowmode

function! LightlineGitBranch()
  return "  " . fugitive#head() . " "
endfunction

let g:lightline = {
      \   'colorscheme': 'PaperColor',
      \   'active': {
      \     'left': [
      \        [ 'mode' ],
      \        [ 'filename', 'readonly' ],
      \     ],
      \     'right': [
      \        [ 'lineinfo' ],
      \        [ 'gitbranch' ],
      \        [ 'fileformat', 'fileencoding', 'filetype' ],
      \     ],
      \   },
      \   'component_function': {
      \     'gitbranch': 'LightlineGitBranch'
      \   },
      \ }