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

fix sleep icon when enabled #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Susensio
Copy link
Contributor

Currently the icon is greyed out when enabled, and green when sleep. This fixes that bug.

@AndreM222
Copy link
Owner

Could you show me how did you set up for sleeping sorry. Because I want to make it so if sleep is enabled then it will use the color, because right now if it doesn't have sleep it stays in grey. So I want to make it work for both scenarios.

If not I'll make a variable so you can have it on if desired to, or make the colors the same by default and you can change it.

I am trying to figure out the best way for everyones taste.

@Susensio
Copy link
Contributor Author

I dont undertand what do you mean.
My lualine config:

                  {
                     "copilot",
                     show_colors = true,
                     symbols = {
                        status = {
                           hl = {
                              enabled = colors.green,
                              sleep = colors.darkwhite,
                              disabled = colors.lightgrey,
                              warning = colors.orange,
                              unknown = colors.red,
                           },
                        },
                        spinner_color = colors.green,
                        -- spinners = {" "},
                        spinners = {" "},
                     },
                  },

I put copilot to sleep changing the vim.b.copilot_suggestion_auto_trigger variable.

The thing is that the boolean logic was inverted. If copilot_suggestion_auto_trigger is true, is_sleep should return false.

@AndreM222
Copy link
Owner

This will break the color. This was inverted for this issue.

show_colors = true not working #10

I am trying to figure out how can I make it work for your case but not affect the basic functionality.

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

Successfully merging this pull request may close these issues.

2 participants