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

Highlight group 'Normal' has no background highlight. #16

Closed
danielnehrig opened this issue Aug 31, 2021 · 3 comments
Closed

Highlight group 'Normal' has no background highlight. #16

danielnehrig opened this issue Aug 31, 2021 · 3 comments

Comments

@danielnehrig
Copy link

on notify.nvim start i get

Highlight group 'Normal' has no background highlight.

Please provide an RGB hex value or highlight group with a background value for 'background_colour' option

Defaulting to #000000
Press ENTER or type command to continue

and then a loop of

NotifyLOGIcon16 xxx links to NotifyLOGIcon
NotifyLOGTitle16 xxx links to NotifyLOGTitle
NotifyLOGBorder16 xxx links to NotifyLOGBorder
NotifyLOGBody16 xxx links to NotifyLOGBody
Press ENTER or type command to continue

this error makes the plugin unusable to me

i use a transparent colorscheme which has no normal color

@rcarriga
Copy link
Owner

rcarriga commented Sep 1, 2021

There are two separate issues happening here.

The first is that you haven't set a window background colour for use with opacity changing. You can follow the instructions to set background_colour in the setup config to a different highlight group or an RGB hex value to use instead. Alternatively if you don't want to use opacity animations, change your stages config value to slide or static

The second issue is that it looks like you're passing an unknown log level to the function and so the highlights are not defined. You can work around this by defining the groups

NotifyLOGIcon
NotifyLOGTitle
NotifyLOGBorder
NotifyLOGBody

however I'll likely add a fallback to use INFO highlights to avoid the blocking error

@danielnehrig
Copy link
Author

alright thanks for the info

rcarriga added a commit that referenced this issue Sep 3, 2021
Avoids errors when using an unknown log level.
See #16
@rcarriga
Copy link
Owner

rcarriga commented Sep 3, 2021

I've added a fallback mechanism for highlights so you won't have the spamming issue anymore

@rcarriga rcarriga closed this as completed Sep 3, 2021
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