-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(transparency)!: add decoupled transparency options; #127
Conversation
You can now set the transparency of the background & floating windows separately. The settings are now in the table transparent. Here are the default values: ```lua transparent = { bg = false, float = false, }, ```` BREAKING CHANGE: The `transparent_bg` option has been removed;
I think leaving a deprecated warning for a few weeks is a good idea. |
I think we can just internally keep the old value for backwards compatibility. I really do not want to break anyone's setup. |
Done & I will do the same for the on_highlight option for #124 |
@5-pebbles Take a look at |
So that would make it forward to |
It will forwrad to noice if it is setup, otherwise it will just be a normal print I believe. |
So, should I add the deprecated warning back in using |
Ah sorry, yes please. |
Also, I think we should add a file called |
Or maybe a function in |
I added a warning for transparent_bg and moved related stuff to the compatibility module.
Good idea.
I think a new file is better, config.lua is mostly defaults. |
Do you get the notification when you use the outdated config option? Does not seem to work on my side. Also, we should consider using |
That is my mistake see: fix(deprecation): no warning if transparent_bg = false;
Yes that would make more sense: feat(deprecation): better warning message; |
Also, you can add the title to the notification message: vim.notify_once("...", level, {title = "nordic.nvim"}) |
As far as I can tell that does not effect the normal echo. So I am going to leave the title in the message as well. The force push is because I decided to make the title |
aec3c15
to
07a01f6
Compare
Good point, didn't think of that. |
The last thing I think we should do is change the notification based on if notify and/or noice is setup or not. But I can also do that. |
Nevermind I think this is unnecessary. |
@5-pebbles Please check my latest changes, then I think we can merge. |
Everything looks good! Ref(compat): Remove occurnces of transparent_bg thanks for noticing this! I need to check my merges more carefully... |
Co-authored-by: Alexander van Zyl <[email protected]> Co-authored-by: AlexvZyl <[email protected]>
Closes #126
You can now set the transparency of the background & floating windows separately.
The settings are now in the table transparent.
Here are the default values:
BREAKING CHANGE: The
transparent_bg
option has been removed;