Skip to content

Commit

Permalink
Merge pull request #2014 from railsdev/neovim_support_for_statusline
Browse files Browse the repository at this point in the history
Use guibg instead of ctermbg if user is using neovim
  • Loading branch information
bhcleek authored Oct 15, 2018
2 parents 23f9496 + 3a669f0 commit b908b52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/go/statusline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ function! go#statusline#Show() abort
" only update highlight if status has changed.
if status_text != s:last_status
if status.state =~ "success" || status.state =~ "finished" || status.state =~ "pass"
hi goStatusLineColor cterm=bold ctermbg=76 ctermfg=22
hi goStatusLineColor cterm=bold ctermbg=76 ctermfg=22 guibg=#5fd700 guifg=#005f00
elseif status.state =~ "started" || status.state =~ "analysing" || status.state =~ "compiling"
hi goStatusLineColor cterm=bold ctermbg=208 ctermfg=88
hi goStatusLineColor cterm=bold ctermbg=208 ctermfg=88 guibg=#ff8700 guifg=#870000
elseif status.state =~ "failed"
hi goStatusLineColor cterm=bold ctermbg=196 ctermfg=52
hi goStatusLineColor cterm=bold ctermbg=196 ctermfg=52 guibg=#ff0000 guifg=#5f0000
endif
endif

Expand Down

0 comments on commit b908b52

Please sign in to comment.