rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

where to config the underline?

Open chunyang-wen opened this issue 4 years ago • 8 comments

I am using rainbow with the default configuration. That means: install rainbow with vim-plug and set it

let g:rainbow_active = 1

image

aaa = 1
b = (aaa,)

I want to remove the underline, as it seems that it is not correct.

image

When I call :RainbowToggle, the underline is gone.

I have search google and try to read the vimscript of rainbow, but I found nothing useful.

  • operators config?
  • underline not found
  • cterm: no suspicious clue found

chunyang-wen avatar Nov 15 '21 09:11 chunyang-wen

Maybe you can find something useful in README.md of this repo (search guis and cterms), and from vim help (:h attr-list)

luochen1990 avatar Nov 20 '21 15:11 luochen1990

I‘d like to remove, not add attribute. I have search *.vim in rainbow, there seems no underline configuration.

chunyang-wen avatar Nov 21 '21 00:11 chunyang-wen

You can read the README about troubleshooting, and use the tool to check which syntax rule is actived. Could that be spell checking?

luochen1990 avatar Nov 21 '21 13:11 luochen1990

Yes, it is the spell check. But I found that the configuration is different with the README.

'parentheses_options': 'contains=@Spell'

to turn off the spell checker.

I have add the spell related configuration in vimrc

set spell spelllang=en_us
hi clear SpellBad
hi SpellBad cterm=underline
hi clear SpellRare
hi SpellRare cterm=underline
hi clear SpellCap
hi SpellCap cterm=underline
hi clear SpellLocal
hi SpellLocal cterm=underline

chunyang-wen avatar Nov 22 '21 02:11 chunyang-wen

to turn off the spell checker

But the configuration to explicitly turn off spell check in parentheses is 'parentheses_options': 'contains=@NoSpell'. ( And by default rainbow wouldn't modify the spell check option, that is, if you don't turn on the spell check explicitly, rainbow wouldn't turn it on for you.

91khr avatar Dec 04 '21 12:12 91khr