Skip to content

Instantly share code, notes, and snippets.

@lrgalego
Created March 13, 2017 22:14
Show Gist options
  • Save lrgalego/bd7cc7362e4f5878324c7a266a7b788c to your computer and use it in GitHub Desktop.
Save lrgalego/bd7cc7362e4f5878324c7a266a7b788c to your computer and use it in GitHub Desktop.
" https://github.com/itchyny/lightline.vim
let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component': {
\ 'readonly': '%{&readonly?"🔒":""}',
\ 'fugitive': '%{exists("*fugitive#head") ? fugitive#head(): ""}'
\ },
\ 'component_visible_condition': {
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ }
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment