Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different background colors for vim spellang and grammarous #88

Open
francozappa opened this issue Apr 9, 2020 · 1 comment
Open

Different background colors for vim spellang and grammarous #88

francozappa opened this issue Apr 9, 2020 · 1 comment

Comments

@francozappa
Copy link

Hi,

Is there a way to set the background color of a grammarous errors? E.g., set grammarous background to dark orange and keep the red background for spellang?

@rddunphy
Copy link

I know I'm a year late, but in case anyone else comes across this...

You can set a highlight group for GrammarousError, which by default gets aliased to SpellBad. So, the following sets red undercurls for spelling, and green undercurls for grammar (probably need to set foreground colour to work in terminals):

augroup spellhighlighting
	autocmd!
	autocmd ColorScheme * highlight SpellBad guifg=NONE guibg=NONE gui=undercurl guisp=#FF0000
	autocmd ColorScheme * highlight GrammarousError guifg=NONE guibg=NONE gui=undercurl guisp=#00FF00
augroup END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants