Skip to content

Instantly share code, notes, and snippets.

@treed
Created October 4, 2014 09:39
Show Gist options
  • Save treed/0c60029b53b4fc193181 to your computer and use it in GitHub Desktop.
Save treed/0c60029b53b4fc193181 to your computer and use it in GitHub Desktop.
Add go type to airline next to tagbar
call airline#parts#define_function('goinfo', 'go#complete#GetInfo')
call airline#parts#define_condition('goinfo', '&ft =~ "go"')
function! AirlineInit()
" Ended up not having virtualenv here since for some reason it insisted on having that as a bare string
let g:airline_section_x = airline#section#create_right(['goinfo', 'tagbar', 'filetype'])
endfunction
autocmd VimEnter * call AirlineInit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment