AndreM222 / copilot-lualine

This is a component which makes a status icon for copilot.lua
MIT License
53 stars 3 forks source link

show_colors = true not working #10

Closed jacobrreed closed 7 months ago

jacobrreed commented 7 months ago

image

lualine_x = {
          { "copilot", show_loading = true, show_colors = true, padding = { right = 1, left = 1 } },

image

image

AndreM222 commented 7 months ago

It is working but someone just added a new color which is the white one for sleep. You can change it. I will Update the pictures soon.

symbols = {
        status = {
            hl = {
                sleep = "#AEB7D0", -> Here
            }
        },
    },
abhinavnatarajan commented 3 months ago

I believe there is still a small bug that is causing this issue. The following line https://github.com/AndreM222/copilot-lualine/blob/9e226cf8f4653e13ec282f5878d66aa435899c8c/lua/lualine/components/copilot.lua#L124 should just be elseif copilot.is_sleep() then (without the negation). This makes the plugin work for me: Screenshot 2024-06-07 024220

AndreM222 commented 3 months ago

I believe there is still a small bug that is causing this issue. The following line

https://github.com/AndreM222/copilot-lualine/blob/9e226cf8f4653e13ec282f5878d66aa435899c8c/lua/lualine/components/copilot.lua#L124

should just be elseif copilot.is_sleep() then (without the negation). This makes the plugin work for me: Screenshot 2024-06-07 024220

I made the change in the latest commit.

4cca52f

abhinavnatarajan commented 3 months ago

Thanks for the quick fix! 👍