Skip to content

Instantly share code, notes, and snippets.

@superbrothers
Created November 23, 2016 03:52
Show Gist options
  • Save superbrothers/73684e02d7ebaa10cc188cd5b015cb29 to your computer and use it in GitHub Desktop.
Save superbrothers/73684e02d7ebaa10cc188cd5b015cb29 to your computer and use it in GitHub Desktop.
let g:lightline = {
\ 'colorscheme': 'jellybeans',
\ 'mode_map': { 'c': 'NORMAL' },
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'gitgutter', 'filename' ], [ 'go' ] ]
\ },
\ 'component': {
\ 'go': '%#goStatuslineColor#%{LightLineGo()}%*',
\ },
\ 'component_function': {
\ 'modified': 'LightLineModified',
\ 'readonly': 'LightLineReadonly',
\ 'fugitive': 'LightLineFugitive',
\ 'gitgutter': 'LightLineGitGutter',
\ 'filename': 'LightLineFilename',
\ 'fileformat': 'LightLineFileformat',
\ 'filetype': 'LightLineFiletype',
\ 'fileencoding': 'LightLineFileencoding',
\ 'mode': 'LightLineMode',
\ }
\ }
function! LightLineGo()
if ! exists('*go#statusline#Show')
return ''
endif
return winwidth('.') > 70 ? go#statusline#Show() : ''
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment