morhetz / gruvbox

Retro groove color scheme for Vim
13.71k stars 1.1k forks source link

BadSpell activation issue #372

Open Ielr opened 3 years ago

Ielr commented 3 years ago

Hi,

I have some problem making the spell check display correctly with gruvbox. When working with a document containing BadSpell marker they are not highlighted when using the gruvbox colour scheme, but there is no problem when using per-installed colour scheme.

-> In the document :set spell works just fine with a :colorscheme default (which correspond to manjaro one) but with :colorscheme gruvbox there is no misspell highlight.

Best regards

motorto commented 3 years ago

Having the same issue , and pretty sure that it was working before , when I was using neovim. Changed back to vim now , and not having the spell errors marked.

Nevertheless what I did was added this after setting the colorscheme on my vimrc

hi SpellBad cterm=underline ctermfg=red

so for example my vimrc looks like this:

set termguicolors
" Gruvbox theme
"""""""""""""""""""""
set background=dark
let g:gruvbox_contrast_dark = "medium"
let g:gruvbox_italic=1
colorscheme gruvbox
hi SpellBad cterm=underline ctermfg=red
1da1a172 commented 2 years ago

I was experiencing the same problem. Looks like the problem was three fold.

  1. My terminal (alacritty) didn't support undercurls until 3 days ago. Installing the latest git build fixed this.
  2. I needed to add the following to my vimrc for it to support undercurls:
    let &t_Cs = "\e[4:3m"
    let &t_Ce = "\e[4:0m"
  3. The color scheme does not support coloring the undercurl independently of the text when in terminal mode. To work around this, the g:gruvbox_guisp_fallback option is provided. Set it to fg if you want to change the foreground color to what the undercurl would have been, or bg for the same with the background.