fix(ai.extras.copilot): update status retrieval for lualine

This commit is contained in:
Baptiste GAZE 2025-04-05 16:15:02 +02:00
parent ec5981dfb1
commit e748a559a7

View file

@ -51,7 +51,7 @@ return {
LazyVim.lualine.status(LazyVim.config.icons.kinds.Copilot, function()
local clients = package.loaded["copilot"] and LazyVim.lsp.get_clients({ name = "copilot", bufnr = 0 }) or {}
if #clients > 0 then
local status = require("copilot.api").status.data.status
local status = require("copilot.status").data.status
return (status == "InProgress" and "pending") or (status == "Warning" and "error") or "ok"
end
end)