Skip to content

Commit

Permalink
Use guibg instead of ctermbg for neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
railsdev authored and hardik-techverito committed Oct 10, 2018
1 parent 92b360f commit 641e7ff
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions autoload/go/statusline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,22 @@ 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
elseif status.state =~ "started" || status.state =~ "analysing" || status.state =~ "compiling"
hi goStatusLineColor cterm=bold ctermbg=208 ctermfg=88
elseif status.state =~ "failed"
hi goStatusLineColor cterm=bold ctermbg=196 ctermfg=52
if (has("nvim"))
if status.state =~ "success" || status.state =~ "finished" || status.state =~ "pass"
hi goStatusLineColor cterm=bold guibg=#5fd700 guifg=#005f00
elseif status.state =~ "started" || status.state =~ "analysing" || status.state =~ "compiling"
hi goStatusLineColor cterm=bold guibg=#ff8700 guifg=#870000
elseif status.state =~ "failed"
hi goStatusLineColor cterm=bold guibg=#ff0000 guifg=#5f0000
endif
else
if status.state =~ "success" || status.state =~ "finished" || status.state =~ "pass"
hi goStatusLineColor cterm=bold ctermbg=76 ctermfg=22
elseif status.state =~ "started" || status.state =~ "analysing" || status.state =~ "compiling"
hi goStatusLineColor cterm=bold ctermbg=208 ctermfg=88
elseif status.state =~ "failed"
hi goStatusLineColor cterm=bold ctermbg=196 ctermfg=52
endif
endif
endif

Expand Down

0 comments on commit 641e7ff

Please sign in to comment.