morhetz / gruvbox

Retro groove color scheme for Vim
13.85k stars 1.11k forks source link

Gruvbox breaks underlining with Coc.vim #353

Open McYoloSwagHam opened 4 years ago

McYoloSwagHam commented 4 years ago

I'm using Vim 8.2 with gruvbox and coc.vim

this is my ~/.vimrc

set rnu
set clipboard=unnamedplus

call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-abolish'
call plug#end()

filetype plugin indent on
syntax enable

colorscheme gruvbox
set background=dark
autocmd FileType markdown let b:coc_suggest_disable = 1

By default Coc.vim should make underlines look like this

image

This is what it looks like with Gruvbox

image

abd96 commented 3 years ago

Try adding these two lines to your vimrc AFTER colorscheme gruvbox :

hi cocerrorhighlight ctermfg=red guifg=#c4384b gui=undercurl term=undercurl hi cocwarninghighlight ctermfg=yellow guifg=#c4ab39 gui=undercurl term=undercurl

buttonfly1000 commented 9 months ago

Try adding these two lines to your vimrc AFTER colorscheme gruvbox :

hi cocerrorhighlight ctermfg=red guifg=#c4384b gui=undercurl term=undercurl hi cocwarninghighlight ctermfg=yellow guifg=#c4ab39 gui=undercurl term=undercurl

According to this https://github.com/neoclide/coc.nvim/issues/1046#issuecomment-516671430

Try this:

autocmd ColorScheme gruvbox
    \ hi CocErrorHighlight gui=underline term=underline cterm=underline guisp=NONE
    \ | hi CocWarningHighlight guisp=NONE
mcdevlog commented 3 weeks ago

This solved the problem

https://github.com/morhetz/gruvbox/issues/266#issuecomment-497523280

add this let g:gruvbox_guisp_fallback = 'bg' in your .vimrc