-
Notifications
You must be signed in to change notification settings - Fork 18
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
Investigate light-on-light syntax highlight in default boot of Neovim #4
Comments
If I understand correctly,
Could you test the following to confirm?
Does it stay on I suspect this behavior occurs because I have set For system theme respect, Stylix overrides need to be set by the user, which can be done via: nvix = inputs.nvix.packages.${pkgs.system}.<type>.extend {
config = {
colorschemes = {
base16 = {
enable = true; # Enable for any color scheme that is not base16
colorscheme = {
inherit (config.lib.stylix.colors.withHashtag)
base00 base01 base02 base03 base04 base05 base06 base07
base08 base09 base0A base0B base0C base0D base0E base0F;
};
};
};
highlight = let
transparent = {
bg = "none";
ctermbg = "none";
};
in {
Normal = transparent;
NonText = transparent;
SignColumn = transparent;
};
};
}; Note: To have a light variant, the Stylix theme must also include a light variant. Only then will Snacks be able to toggle it correctly. |
Wow, thank you for a detailed response! When I set
Just to be clear about how it works for me:
FWIW, I may be some days behind |
P.S. I may have missed this stylix instruction, but it would be banger if this instruction was discoverable. |
Yeah, it seems that for Stylix, you need to have a light variant; only then will the I guess a request can be made for the Snacks API to remember the last dark theme if that theme doesn’t have a light variant. |
I think something else is still missing here to get full stylix support. My experience has been:
|
In this comment, I’ve mentioned how I will switch to tokyonight as the default since tokyo dark doesn’t have a light variant. For Stylix, I’ll update the README with easier-to-understand instructions after I complete my In the meantime, if someone can create both light and dark variants of the Stylix theme via |
The behavior I described occurred while using the changes described in your comment and while having the nixvim stylix target enabled |
Why?
Some people use light colour themes, for instance, with stylix / base16.
Hardcoded light syntax highlight for terms makes it unusable.
Note that when one presses ub, tokio themes override system theme.
The
pkgs
is always light grey, even if the system theme is light. Here it's readable because the I switched the theme to darkWhat?
The text was updated successfully, but these errors were encountered: